[gen] Added and changed some methods on the basic workflow objects in order to ease modifications on workflow objects (states, transitions).

This commit is contained in:
Gaetan Delannay 2014-04-17 17:10:38 +02:00
parent b5d38ad150
commit 75f5407e48
2 changed files with 58 additions and 4 deletions

View file

@ -699,7 +699,7 @@ class AbstractWrapper(object):
elif name == 'siteUrl': return self.o.getTool().getSiteUrl()
# Now, let's try to return a real attribute.
res = object.__getattribute__(self, name)
# If we got an Appy type, return the value of this type for this object
# If we got an Appy field, return its value for this object
if isinstance(res, Field):
o = self.o
if isinstance(res, Ref):