sync comment and fix implementation of workflow factories for ERP5

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30749 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7f48e6f7
......@@ -71,8 +71,8 @@ except ImportError:
manage_addWorkflowFormDtml = HTMLFile('dtml/addWorkflow', globals())
def _generateWorkflowConstructors(factory_info):
""" Generate a "manage_addWorkflow_?" and "manage_addWorkflowForm_?" methods
specific for each workflow factory. """
""" Generate a "addWorkflow_?" and "addWorkflowForm_?" methods specific for
each workflow factory. """
FACTORY_FORM_PREFIX = 'addWorkflowForm_'
FACTORY_ACTION_PREFIX = 'addWorkflow_'
......@@ -97,7 +97,7 @@ def _generateWorkflowConstructors(factory_info):
"""
# we could have just used the factory from factory_info here, but we use
# addWorkflowByType to exercise it.
addWorkflowByType(dispatcher, workflow_factory_id, workflow_id)
workflow = addWorkflowByType(dispatcher, workflow_factory_id, workflow_id)
if REQUEST is not None:
return REQUEST.response.redirect(dispatcher.DestinationURL() +
"/manage_main")
......
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