Commit 990540a6 authored by Yusei Tahara's avatar Yusei Tahara

isTempDocument is now a function, not an attribute.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31565 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6be4552d
...@@ -2816,7 +2816,11 @@ class Base( CopyContainer, ...@@ -2816,7 +2816,11 @@ class Base( CopyContainer,
def isTempObject(self): def isTempObject(self):
"""Return true if self is an instance of a temporary document class. """Return true if self is an instance of a temporary document class.
""" """
return getattr(self.__class__, 'isTempDocument', 0) isTempDocument = getattr(self.__class__, 'isTempDocument', None)
if isTempDocument is not None:
return isTempDocument()
else:
return False
# Workflow Related Method # Workflow Related Method
security.declarePublic('getWorkflowStateItemList') security.declarePublic('getWorkflowStateItemList')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment