Commit 81a48125 authored by Sebastien Robin's avatar Sebastien Robin

updated comments


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1786 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 117eb66f
...@@ -131,7 +131,7 @@ class ActiveProcess(Base): ...@@ -131,7 +131,7 @@ class ActiveProcess(Base):
security.declareProtected( CMFCorePermissions.View, 'hasActivity' ) security.declareProtected( CMFCorePermissions.View, 'hasActivity' )
def hasActivity(self, **kw): def hasActivity(self, **kw):
""" """
Tells if an object if active Tells if there is still some activities not finished attached to this process
""" """
activity_tool = getattr(self, 'portal_activities', None) activity_tool = getattr(self, 'portal_activities', None)
if activity_tool is None: return 0 # Do nothing if no portal_activities if activity_tool is None: return 0 # Do nothing if no portal_activities
...@@ -140,7 +140,7 @@ class ActiveProcess(Base): ...@@ -140,7 +140,7 @@ class ActiveProcess(Base):
security.declareProtected( CMFCorePermissions.View, 'hasErrorActivity' ) security.declareProtected( CMFCorePermissions.View, 'hasErrorActivity' )
def hasErrorActivity(self, **kw): def hasErrorActivity(self, **kw):
""" """
Tells if an object if active Tells if some attached activities are in a error
""" """
return self.hasActivity(processing_node = INVOKE_ERROR_STATE) return self.hasActivity(processing_node = INVOKE_ERROR_STATE)
......
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