web/request.py
changeset 9568 e8b9a3d23ad9
parent 9561 3bdf85279c67
child 9582 46ed25d38fe2
equal deleted inserted replaced
9567:b87c09f853d3 9568:e8b9a3d23ad9
   414         """
   414         """
   415         def rqlexec(req, rql, args=None, key=None):
   415         def rqlexec(req, rql, args=None, key=None):
   416             req.execute(rql, args, key)
   416             req.execute(rql, args, key)
   417         return self.user_callback(rqlexec, rqlargs, *args, **kwargs)
   417         return self.user_callback(rqlexec, rqlargs, *args, **kwargs)
   418 
   418 
       
   419     @deprecated('[3.19] use a traditional ajaxfunc / controller')
   419     def user_callback(self, cb, cbargs, *args, **kwargs):
   420     def user_callback(self, cb, cbargs, *args, **kwargs):
   420         """register the given user callback and return a URL which can
   421         """register the given user callback and return a URL which can
   421         be inserted in an HTML view. When the URL is accessed, the
   422         be inserted in an HTML view. When the URL is accessed, the
   422         callback function will be called (as 'cb(req, \*cbargs)', and a
   423         callback function will be called (as 'cb(req, \*cbargs)', and a
   423         message will be displayed in the web interface. The third
   424         message will be displayed in the web interface. The third