entities/wfobjs.py
changeset 3675 5d143781a604
parent 3674 387d51af966d
child 3720 5376aaadd16b
--- a/entities/wfobjs.py	Thu Oct 15 10:31:54 2009 +0200
+++ b/entities/wfobjs.py	Thu Oct 15 10:56:34 2009 +0200
@@ -418,10 +418,10 @@
         """return the default workflow for entities of this type"""
         # XXX CWEType method
         wfrset = self._cw.execute('Any WF WHERE ET default_workflow WF, '
-                                  'ET name %(et)s', {'et': self.id})
+                                  'ET name %(et)s', {'et': self.__regid__})
         if wfrset:
             return wfrset.get_entity(0, 0)
-        self.warning("can't find any workflow for %s", self.id)
+        self.warning("can't find any workflow for %s", self.__regid__)
         return None
 
     def possible_transitions(self, type='normal'):