Commit 09626b42 authored by wenjie.zheng's avatar wenjie.zheng

erp5_workflow: move workflow initializing code here.

parent b086e3fa
...@@ -57,7 +57,6 @@ for state_id, state_title in ((\'draft\', \'Draft\'),):\n ...@@ -57,7 +57,6 @@ for state_id, state_title in ((\'draft\', \'Draft\'),):\n
state.setReference(state_id)\n state.setReference(state_id)\n
state.setTitle(state_title)\n state.setTitle(state_title)\n
context.setSourceValue(state)\n context.setSourceValue(state)\n
\n
for v, property_dict in (\n for v, property_dict in (\n
(\'action\', {\n (\'action\', {\n
\'description\': \'Transition id\',\n \'description\': \'Transition id\',\n
...@@ -100,7 +99,6 @@ for v, property_dict in (\n ...@@ -100,7 +99,6 @@ for v, property_dict in (\n
variable = context.newContent(portal_type=\'Variable\')\n variable = context.newContent(portal_type=\'Variable\')\n
variable.setReference(v)\n variable.setReference(v)\n
variable.edit(**property_dict)\n variable.edit(**property_dict)\n
\n
context.setStateVariable(\'simulation_state\')\n context.setStateVariable(\'simulation_state\')\n
</string> </value> </string> </value>
</item> </item>
......
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