[workflow] fix warning: we want to see the adapted entity, not the adapter stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 27 Jan 2011 13:40:01 +0100
branchstable
changeset 6904 cf869016a823
parent 6903 d16b42c1e517
child 6905 fe9fd048e64c
[workflow] fix warning: we want to see the adapted entity, not the adapter
entities/wfobjs.py
--- a/entities/wfobjs.py	Thu Jan 27 13:39:29 2011 +0100
+++ b/entities/wfobjs.py	Thu Jan 27 13:40:01 2011 +0100
@@ -489,7 +489,7 @@
         try:
             return self.current_state.name
         except AttributeError:
-            self.warning('entity %s has no state', self)
+            self.warning('entity %s has no state', self.entity)
             return None
 
     @property