call func attr
parent
9ac58b2323
commit
0e18a1c406
|
@ -28,7 +28,7 @@ class ExtApplication(cp.Application):
|
||||||
def ajax_callback(self, *args, **kwargs):
|
def ajax_callback(self, *args, **kwargs):
|
||||||
fn = kwargs.pop('fn')
|
fn = kwargs.pop('fn')
|
||||||
if fn:
|
if fn:
|
||||||
fn = js.live_methods[int(fn)]
|
fn = js.live_methods[int(fn)].func
|
||||||
fn(*args, **kwargs)
|
fn(*args, **kwargs)
|
||||||
return str(js.js_manager)
|
return str(js.js_manager)
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ class ExtApplication(cp.Application):
|
||||||
def ajax_func_callback(self, *args, **kwargs):
|
def ajax_func_callback(self, *args, **kwargs):
|
||||||
fn = kwargs.pop('fn')
|
fn = kwargs.pop('fn')
|
||||||
if fn:
|
if fn:
|
||||||
fn = js.live_methods[int(fn)]
|
fn = js.live_methods[int(fn)].func
|
||||||
res = fn(*args, **kwargs)
|
res = fn(*args, **kwargs)
|
||||||
return {
|
return {
|
||||||
'data': res
|
'data': res
|
||||||
|
|
Loading…
Reference in New Issue