view.py
branchstable
changeset 4060 4067cd36718f
parent 4058 b3578583b57b
child 4061 e1fba59b5c34
child 4062 d16b2927afe6
equal deleted inserted replaced
4058:b3578583b57b 4060:4067cd36718f
   460                 _cb(*args)
   460                 _cb(*args)
   461         cbname = self.req.register_onetime_callback(cb, *args)
   461         cbname = self.req.register_onetime_callback(cb, *args)
   462         return self.build_js(cbname, xml_escape(msg or ''))
   462         return self.build_js(cbname, xml_escape(msg or ''))
   463 
   463 
   464     def build_update_js_call(self, cbname, msg):
   464     def build_update_js_call(self, cbname, msg):
   465         rql = xml_escape(self.rset.printable_rql())
   465         rql = self.rset.printable_rql()
   466         return "javascript:userCallbackThenUpdateUI('%s', '%s', %s, %s, '%s', '%s')" % (
   466         return "javascript:userCallbackThenUpdateUI('%s', '%s', %s, %s, '%s', '%s')" % (
   467             cbname, self.__regid__, dumps(rql), dumps(msg),
   467             cbname, self.__regid__, dumps(rql), dumps(msg),
   468             self.__registry__, self.div_id())
   468             self.__registry__, self.div_id())
   469 
   469 
   470      def build_reload_js_call(self, cbname, msg):
   470      def build_reload_js_call(self, cbname, msg):