devtools/testlib.py
changeset 8128 0a927fe4541b
parent 8004 7f14b5e25b97
child 8311 76a44a0d7f4b
equal deleted inserted replaced
8125:7070250bf50d 8128:0a927fe4541b
   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