add regexp by Ext.re('/regexp/i')
This commit is contained in:
		
							parent
							
								
									75ee3b188f
								
							
						
					
					
						commit
						cac13a1da3
					
				@ -36,6 +36,9 @@ def getCmp(id):
 | 
				
			|||||||
def getBody():
 | 
					def getBody():
 | 
				
			||||||
    return js.JsNode('Ext.getBody()')
 | 
					    return js.JsNode('Ext.getBody()')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def re(pattern):
 | 
				
			||||||
 | 
					    return js.RE(pattern)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
tip = js.JsNode('Ext.tip')
 | 
					tip = js.JsNode('Ext.tip')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Component(js.JsObject):
 | 
					class Component(js.JsObject):
 | 
				
			||||||
 | 
				
			|||||||
@ -7,10 +7,9 @@ js_ajax = None
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
live_methods = {}
 | 
					live_methods = {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class STUB:
 | 
					class RE:
 | 
				
			||||||
    def stub_method(self):
 | 
					    def __init__(self, re):
 | 
				
			||||||
        pass
 | 
					        self.re = re
 | 
				
			||||||
stub_class = STUB()
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
class FuncWithParams:
 | 
					class FuncWithParams:
 | 
				
			||||||
    def __init__(self, func, args = [], params = {}):
 | 
					    def __init__(self, func, args = [], params = {}):
 | 
				
			||||||
@ -28,6 +27,8 @@ def dict2extjs(d):
 | 
				
			|||||||
def encode(o):
 | 
					def encode(o):
 | 
				
			||||||
    if isinstance(o, JsNode):
 | 
					    if isinstance(o, JsNode):
 | 
				
			||||||
        return str(o)
 | 
					        return str(o)
 | 
				
			||||||
 | 
					    if isinstance(o, RE):
 | 
				
			||||||
 | 
					        return o.re
 | 
				
			||||||
    elif isinstance(o, (list, tuple)):
 | 
					    elif isinstance(o, (list, tuple)):
 | 
				
			||||||
        return list2extjs(o)
 | 
					        return list2extjs(o)
 | 
				
			||||||
    elif isinstance(o, bool):
 | 
					    elif isinstance(o, bool):
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user