view.py
branchstable
changeset 9700 da7d341cca76
parent 9492 c7fc56eecd1a
child 9821 2077c8da1893
child 9918 228c3571e222
equal deleted inserted replaced
9699:990676d3f39f 9700:da7d341cca76
   500 
   500 
   501 class ReloadableMixIn(object):
   501 class ReloadableMixIn(object):
   502     """simple mixin for reloadable parts of UI"""
   502     """simple mixin for reloadable parts of UI"""
   503 
   503 
   504     def user_callback(self, cb, args, msg=None, nonify=False):
   504     def user_callback(self, cb, args, msg=None, nonify=False):
   505         """register the given user callback and return an url to call it ready to be
   505         """register the given user callback and return a URL to call it ready to be
   506         inserted in html
   506         inserted in html
   507         """
   507         """
   508         self._cw.add_js('cubicweb.ajax.js')
   508         self._cw.add_js('cubicweb.ajax.js')
   509         if nonify:
   509         if nonify:
   510             _cb = cb
   510             _cb = cb