equal
deleted
inserted
replaced
603 def remote_call(self, fname, *args): |
603 def remote_call(self, fname, *args): |
604 """remote json call simulation""" |
604 """remote json call simulation""" |
605 dump = json.dumps |
605 dump = json.dumps |
606 args = [dump(arg) for arg in args] |
606 args = [dump(arg) for arg in args] |
607 req = self.request(fname=fname, pageid='123', arg=args) |
607 req = self.request(fname=fname, pageid='123', arg=args) |
608 ctrl = self.vreg['controllers'].select('json', req) |
608 ctrl = self.vreg['controllers'].select('ajax', req) |
609 return ctrl.publish(), req |
609 return ctrl.publish(), req |
610 |
610 |
611 def app_publish(self, req, path='view'): |
611 def app_publish(self, req, path='view'): |
612 return self.app.publish(path, req) |
612 return self.app.publish(path, req) |
613 |
613 |