sobjects/supervising.py
changeset 6582 8eb7883b4223
parent 6142 8bc6eac1fac1
child 8190 2a3c1b787688
--- a/sobjects/supervising.py	Thu Oct 21 18:38:36 2010 +0200
+++ b/sobjects/supervising.py	Fri Oct 22 09:15:35 2010 +0200
@@ -18,6 +18,7 @@
 """some hooks and views to handle supervising of any data changes"""
 
 __docformat__ = "restructuredtext en"
+_ = unicode
 
 from cubicweb import UnknownEid
 from cubicweb.selectors import none_rset
@@ -133,7 +134,8 @@
         self.w(msg % locals())
 
     def change_state(self, (entity, fromstate, tostate)):
-        msg = self._cw._('changed state of %(etype)s #%(eid)s (%(title)s)')
+        _ = self._cw._
+        msg = _('changed state of %(etype)s #%(eid)s (%(title)s)')
         self.w(u'%s\n' % (msg % self._entity_context(entity)))
         self.w(_('  from state %(fromstate)s to state %(tostate)s\n' %
                  {'fromstate': _(fromstate.name), 'tostate': _(tostate.name)}))