server/session.py
changeset 9050 635862b48485
parent 9049 9d62d53b49df
child 9052 4cba5f2cd57b
equal deleted inserted replaced
9049:9d62d53b49df 9050:635862b48485
   895             unicode(self.user.login), self.id, id(self))
   895             unicode(self.user.login), self.id, id(self))
   896 
   896 
   897     @property
   897     @property
   898     def sessionid(self):
   898     def sessionid(self):
   899         return self.id
   899         return self.id
       
   900 
       
   901     @property
       
   902     def login(self):
       
   903         # XXX backward compat with dbapi. deprecate me ASAP.
       
   904         return self.user.login
   900 
   905 
   901     def get_cnx(self, cnxid):
   906     def get_cnx(self, cnxid):
   902         """return the <cnxid> connection attached to this session
   907         """return the <cnxid> connection attached to this session
   903 
   908 
   904         Connection is created if necessary"""
   909         Connection is created if necessary"""