server/session.py
changeset 9048 8481fc6aa6dd
parent 9047 c873445fe198
child 9049 9d62d53b49df
equal deleted inserted replaced
9047:c873445fe198 9048:8481fc6aa6dd
  1414 
  1414 
  1415     rql_rewriter = cnx_attr('_rewriter')
  1415     rql_rewriter = cnx_attr('_rewriter')
  1416 
  1416 
  1417     # deprecated ###############################################################
  1417     # deprecated ###############################################################
  1418 
  1418 
       
  1419     @property
       
  1420     def anonymous_session(self):
       
  1421         # XXX for now, anonymous-user is a web side option.
       
  1422         # It will only be present inside all-in-one instance.
       
  1423         # there is plan to move it down to global config.
       
  1424         return self.user.login == self.repo.config.get('anonymous-user')
       
  1425 
  1419     @deprecated('[3.13] use getattr(session.rtype_eids_rdef(rtype, eidfrom, eidto), prop)')
  1426     @deprecated('[3.13] use getattr(session.rtype_eids_rdef(rtype, eidfrom, eidto), prop)')
  1420     def schema_rproperty(self, rtype, eidfrom, eidto, rprop):
  1427     def schema_rproperty(self, rtype, eidfrom, eidto, rprop):
  1421         return getattr(self.rtype_eids_rdef(rtype, eidfrom, eidto), rprop)
  1428         return getattr(self.rtype_eids_rdef(rtype, eidfrom, eidto), rprop)
  1422 
  1429 
  1423     @property
  1430     @property