--- a/sobjects/supervising.py Mon Mar 08 19:02:35 2010 +0100
+++ b/sobjects/supervising.py Tue Mar 09 08:59:43 2010 +0100
@@ -92,7 +92,7 @@
return self._cw._('[%s supervision] changes summary') % self._cw.vreg.config.appid
def call(self, changes):
- user = self._cw.actual_session().user
+ user = self._cw.user
self.w(self._cw._('user %s has made the following change(s):\n\n')
% user.login)
for event, changedescr in filter_changes(changes):
@@ -129,8 +129,8 @@
self.w(u' %s' % entity.absolute_url())
def _relation_context(self, changedescr):
- _ = self._cw._
- session = self._cw.actual_session()
+ session = self._cw
+ _ = session._cw._
def describe(eid):
try:
return _(session.describe(eid)[0]).lower()