Commit c9aebfff authored by Jérome Perrin's avatar Jérome Perrin

remove FTI and 'getEventState' workflow state method getter


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5568 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 57c2928d
...@@ -62,54 +62,3 @@ class Event(Document): ...@@ -62,54 +62,3 @@ class Event(Document):
, PropertySheet.Task , PropertySheet.Task
) )
# Factory Type Information
factory_type_information = \
{ 'id' : portal_type
, 'meta_type' : meta_type
, 'description' : """\
An Event object holds the information about
an event."""
, 'icon' : 'event_icon.gif'
, 'product' : 'ERP5'
, 'factory' : 'addEvent'
, 'immediate_view' : 'event_edit'
, 'actions' :
( { 'id' : 'view'
, 'name' : 'View'
, 'category' : 'object_view'
, 'action' : 'event_view'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'print'
, 'name' : 'Print'
, 'category' : 'object_print'
, 'action' : 'event_view'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'metadata'
, 'name' : 'Metadata'
, 'category' : 'object_view'
, 'action' : 'metadata_edit'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'translate'
, 'name' : 'Translate'
, 'category' : 'object_action'
, 'action' : 'translation_template_view'
, 'permissions' : (
Permissions.TranslateContent, )
}
)
}
security.declareProtected(Permissions.AccessContentsInformation, 'getSimulationState')
def getEventState(self, id_only=1):
"""
Returns the current state in simulation
"""
portal_workflow = getToolByName(self, 'portal_workflow')
wf = portal_workflow.getWorkflowById('event_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