req.py
branchstable
changeset 8238 087bb529035c
parent 7990 a673d1d9a738
child 8309 48ef505aa9f9
equal deleted inserted replaced
8235:c2a91d6639d8 8238:087bb529035c
   297 
   297 
   298     # bound user related methods ###############################################
   298     # bound user related methods ###############################################
   299 
   299 
   300     @cached
   300     @cached
   301     def user_data(self):
   301     def user_data(self):
   302         """returns a dictionnary with this user's information"""
   302         """returns a dictionary with this user's information"""
   303         userinfo = {}
   303         userinfo = {}
   304         if self.is_internal_session:
   304         if self.is_internal_session:
   305             userinfo['login'] = "cubicweb"
   305             userinfo['login'] = "cubicweb"
   306             userinfo['name'] = "cubicweb"
   306             userinfo['name'] = "cubicweb"
   307             userinfo['email'] = ""
   307             userinfo['email'] = ""
   322              initargs=None, w=None, **kwargs):
   322              initargs=None, w=None, **kwargs):
   323         """Select object with the given id (`__oid`) then render it.  If the
   323         """Select object with the given id (`__oid`) then render it.  If the
   324         object isn't selectable, try to select fallback object if
   324         object isn't selectable, try to select fallback object if
   325         `__fallback_oid` is specified.
   325         `__fallback_oid` is specified.
   326 
   326 
   327         If specified `initargs` is expected to be a dictionnary containing
   327         If specified `initargs` is expected to be a dictionary containing
   328         arguments that should be given to selection (hence to object's __init__
   328         arguments that should be given to selection (hence to object's __init__
   329         as well), but not to render(). Other arbitrary keyword arguments will be
   329         as well), but not to render(). Other arbitrary keyword arguments will be
   330         given to selection *and* to render(), and so should be handled by
   330         given to selection *and* to render(), and so should be handled by
   331         object's call or cell_call method..
   331         object's call or cell_call method..
   332         """
   332         """