From d25ed424ea3cbb00d9b8e78168ffaf8c4b6be479 Mon Sep 17 00:00:00 2001 From: inpos Date: Tue, 14 Aug 2018 15:07:18 +0300 Subject: [PATCH] move re funct from Ext to js module --- orun/extjs/base.py | 3 --- orun/js.py | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/orun/extjs/base.py b/orun/extjs/base.py index 2374d9d..1ef6229 100644 --- a/orun/extjs/base.py +++ b/orun/extjs/base.py @@ -36,9 +36,6 @@ def getCmp(id): def getBody(): return js.JsNode('Ext.getBody()') -def re(pattern): - return js.RE(pattern) - tip = js.JsNode('Ext.tip') class Component(js.JsObject): diff --git a/orun/js.py b/orun/js.py index c2cbcf5..b97b81d 100644 --- a/orun/js.py +++ b/orun/js.py @@ -11,6 +11,9 @@ class RE: def __init__(self, re): self.re = re +def re(pattern): + return RE(pattern) + class FuncWithParams: def __init__(self, func, args = [], params = {}): self.func = func