equal
deleted
inserted
replaced
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 |