equal
deleted
inserted
replaced
1313 @property |
1313 @property |
1314 def login(self): |
1314 def login(self): |
1315 # XXX backward compat with dbapi. deprecate me ASAP. |
1315 # XXX backward compat with dbapi. deprecate me ASAP. |
1316 return self.user.login |
1316 return self.user.login |
1317 |
1317 |
|
1318 def new_cnx(self): |
|
1319 """Return a new Connection object linked to the session |
|
1320 |
|
1321 The returned Connection will *not* be managed by the Session. |
|
1322 """ |
|
1323 return Connection(self) |
|
1324 |
1318 def get_cnx(self, cnxid): |
1325 def get_cnx(self, cnxid): |
1319 """return the <cnxid> connection attached to this session |
1326 """return the <cnxid> connection attached to this session |
1320 |
1327 |
1321 Connection is created if necessary""" |
1328 Connection is created if necessary""" |
1322 with self._lock: # no connection exist with the same id |
1329 with self._lock: # no connection exist with the same id |