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 |