Commit 0b56cbe0 authored by Jérome Perrin's avatar Jérome Perrin

remove empty workflow methods (validate, invalidate) and simulation state...

remove empty workflow methods (validate, invalidate) and simulation state getter. All of this now generated on the fly.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4333 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 49e20c38
...@@ -342,29 +342,3 @@ class Entity: ...@@ -342,29 +342,3 @@ class Entity:
) )
self.default_email.fromText(coordinate) self.default_email.fromText(coordinate)
security.declareProtected(Permissions.ModifyPortalContent, 'validate')
def validate(self):
"""
Sets the entity to validated
"""
pass
validate = WorkflowMethod(validate)
security.declareProtected(Permissions.ModifyPortalContent, 'invalidate')
def invalidate(self):
"""
Sets the entity to invalidated
"""
pass
invalidate = WorkflowMethod(invalidate)
security.declareProtected(Permissions.AccessContentsInformation, 'getValidationState')
def getValidationState(self, id_only=1):
"""
Returns the current state in validation
"""
portal_workflow = getToolByName(self, 'portal_workflow')
wf = portal_workflow.getWorkflowById('validation_workflow')
return wf._getWorkflowStateOf(self, id_only=id_only)
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