--- 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'):