equal
deleted
inserted
replaced
707 # done during `session_close` hooks |
707 # done during `session_close` hooks |
708 cnx.commit() |
708 cnx.commit() |
709 session.close() |
709 session.close() |
710 del self._sessions[sessionid] |
710 del self._sessions[sessionid] |
711 self.info('closed session %s for user %s', sessionid, session.user.login) |
711 self.info('closed session %s for user %s', sessionid, session.user.login) |
712 |
|
713 def call_service(self, sessionid, regid, **kwargs): |
|
714 """ |
|
715 See :class:`cubicweb.dbapi.Connection.call_service` |
|
716 and :class:`cubicweb.server.Service` |
|
717 """ |
|
718 # XXX lack a txid |
|
719 session = self._get_session(sessionid) |
|
720 return session._cnx.call_service(regid, **kwargs) |
|
721 |
712 |
722 def undoable_transactions(self, sessionid, ueid=None, txid=None, |
713 def undoable_transactions(self, sessionid, ueid=None, txid=None, |
723 **actionfilters): |
714 **actionfilters): |
724 """See :class:`cubicweb.dbapi.Connection.undoable_transactions`""" |
715 """See :class:`cubicweb.dbapi.Connection.undoable_transactions`""" |
725 session = self._get_session(sessionid, setcnxset=True, txid=txid) |
716 session = self._get_session(sessionid, setcnxset=True, txid=txid) |