# HG changeset patch # User Pierre-Yves David # Date 1372089620 -7200 # Node ID 635862b48485965f01bec2670a6d5fd606b7b342 # Parent 9d62d53b49df577106e1c0a7235a941ce499de1f [server/session] add a login property session.login is a DBAPISession attribute. Having it on server side session will helps the rework of the API to access repository. The new schema drop the concept of DBAPISession and use server side session for the same purpose. related to #2503918 diff -r 9d62d53b49df -r 635862b48485 server/session.py --- a/server/session.py Fri Jun 21 15:47:01 2013 +0200 +++ b/server/session.py Mon Jun 24 18:00:20 2013 +0200 @@ -898,6 +898,11 @@ def sessionid(self): return self.id + @property + def login(self): + # XXX backward compat with dbapi. deprecate me ASAP. + return self.user.login + def get_cnx(self, cnxid): """return the connection attached to this session