doc/book/en/devrepo/repo/sessions.rst
changeset 8760 17994bf95d6a
parent 7751 50f89f05ae0a
child 9175 a7412e884d7b
equal deleted inserted replaced
8759:cd68cd879def 8760:17994bf95d6a
   197  @objectify_selector
   197  @objectify_selector
   198  def foo_authenticated(cls, req, rset=None, **kwargs):
   198  def foo_authenticated(cls, req, rset=None, **kwargs):
   199      if hasattr(req.cnx, 'foo_user') and req.foo_user:
   199      if hasattr(req.cnx, 'foo_user') and req.foo_user:
   200          return 1
   200          return 1
   201      return 0
   201      return 0
       
   202 
       
   203 Full API Session
       
   204 ~~~~~~~~~~~~~~~~~~~~~~~~~~
       
   205 
       
   206 .. autoclass:: cubicweb.server.session.Session