cubicweb/entities/authobjs.py
changeset 12041 69f69ce8241a
parent 11767 432f87a63057
child 12046 9056a41d91ba
equal deleted inserted replaced
12040:e9682629df57 12041:69f69ce8241a
   171 
   171 
   172     def dc_title(self):
   172     def dc_title(self):
   173         return self.login
   173         return self.login
   174 
   174 
   175     dc_long_title = name
   175     dc_long_title = name
   176 
       
   177     def __call__(self, *args, **kwargs):
       
   178         """ugly hack for compatibility betweeb dbapi and repo api
       
   179 
       
   180         In the dbapi, Connection and Session have a ``user`` method to
       
   181         generated a user for a request In the repo api, Connection and Session
       
   182         have a user attribute inherited from SessionRequestBase prototype. This
       
   183         ugly hack allows to not break user of the user method.
       
   184 
       
   185         XXX Deprecate me ASAP"""
       
   186         return self