entities/authobjs.py
changeset 9059 795ea498225f
parent 8544 3d049071957e
child 10141 62e1f9749d3a
equal deleted inserted replaced
9058:2f45e99ad753 9059:795ea498225f
   164     def dc_title(self):
   164     def dc_title(self):
   165         return self.login
   165         return self.login
   166 
   166 
   167     dc_long_title = name
   167     dc_long_title = name
   168 
   168 
       
   169     def __call__(self, *args, **kwargs):
       
   170         """ugly hack for compatibility betweeb dbapi and repo api
       
   171 
       
   172         In the dbapi, Connection and Session have a ``user`` method to
       
   173         generated a user for a request In the repo api, Connection and Session
       
   174         have a user attribute inherited from SessionRequestBase prototype. This
       
   175         ugly hack allows to not break user of the user method.
       
   176 
       
   177         XXX Deprecate me ASAP"""
       
   178         return self
       
   179 
   169 from logilab.common.deprecation import class_renamed
   180 from logilab.common.deprecation import class_renamed
   170 EUser = class_renamed('EUser', CWUser)
   181 EUser = class_renamed('EUser', CWUser)
   171 EGroup = class_renamed('EGroup', CWGroup)
   182 EGroup = class_renamed('EGroup', CWGroup)