entities/wfobjs.py
changeset 8216 99ff746e8de8
parent 8190 2a3c1b787688
parent 8212 a045d3821990
child 8900 010a59e12d89
--- a/entities/wfobjs.py	Fri Feb 10 16:31:39 2012 +0100
+++ b/entities/wfobjs.py	Fri Feb 10 16:53:52 2012 +0100
@@ -256,6 +256,9 @@
     """customized class for Transition entities"""
     __regid__ = 'Transition'
 
+    def dc_long_title(self):
+        return '%s (%s)' % (self.name, self._cw._(self.name))
+
     def destination(self, entity):
         try:
             return self.destination_state[0]
@@ -345,6 +348,9 @@
     fetch_attrs, cw_fetch_order = fetch_config(['name'])
     rest_attr = 'eid'
 
+    def dc_long_title(self):
+        return '%s (%s)' % (self.name, self._cw._(self.name))
+
     @property
     def workflow(self):
         # take care, may be missing in multi-sources configuration