Commit 7aef87dc authored by Arnaud Fontaine's avatar Arnaud Fontaine

SQUASH

parent c50c76a4
...@@ -145,6 +145,7 @@ SEPARATELY_EXPORTED_PROPERTY_DICT = { ...@@ -145,6 +145,7 @@ SEPARATELY_EXPORTED_PROPERTY_DICT = {
"PDF": ("pdf", 0, "data"), "PDF": ("pdf", 0, "data"),
"PyData Script": ("py", 0, "_body"), "PyData Script": ("py", 0, "_body"),
"Python Script": ("py", 0, "_body"), "Python Script": ("py", 0, "_body"),
"Workflow Script": ("py", 0, "_body"),
"PythonScript": ("py", 0, "_body"), "PythonScript": ("py", 0, "_body"),
"Spreadsheet": (None, 0, "data"), "Spreadsheet": (None, 0, "data"),
"SQL": ("sql", 0, "src"), "SQL": ("sql", 0, "src"),
......
...@@ -16,13 +16,13 @@ ...@@ -16,13 +16,13 @@
<key> <string>categories</string> </key> <key> <string>categories</string> </key>
<value> <value>
<tuple> <tuple>
<string>action_type/object_action</string> <string>action_type/object_jio_action</string>
</tuple> </tuple>
</value> </value>
</item> </item>
<item> <item>
<key> <string>category</string> </key> <key> <string>category</string> </key>
<value> <string>object_action</string> </value> <value> <string>object_jio_action</string> </value>
</item> </item>
<item> <item>
<key> <string>condition</string> </key> <key> <string>condition</string> </key>
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Convert workflows to ERP5 Workflows</string> </value> <value> <string>Convert DCWorkflow to ERP5 Workflows</string> </value>
</item> </item>
<item> <item>
<key> <string>visible</string> </key> <key> <string>visible</string> </key>
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <key> <string>text</string> </key>
<value> <string>string:${object_url}/BusinessTemplate_convertToERP5Workflows</string> </value> <value> <string>string:${object_url}/BusinessTemplate_convertAllDCWorkflowToERP5Workflow</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
workflow_tool = context.getPortalObject() workflow_tool = context.getPortalObject().portal_workflow
unknown_workflow_id_list = [] unknown_workflow_id_list = []
for workflow_id in context.getTemplateWorkflowIdList(): for workflow_id in context.getTemplateWorkflowIdList():
try: try:
......
...@@ -644,7 +644,7 @@ def StateDefinition_getDestinationIdList(self): ...@@ -644,7 +644,7 @@ def StateDefinition_getDestinationIdList(self):
return self.transitions return self.transitions
def StateDefinition_getDestinationValueList(self): def StateDefinition_getDestinationValueList(self):
if self.transitions: # empty tuple by default if self.transitions: # empty tuple by default
return [v for i, v in self.getWorkflow().transitions.iteritems() return [v for i, v in self.getWorkflow().transitions.items()
if i in self.transitions] if i in self.transitions]
return [] return []
def StateDefinition_getStateTypeList(self): def StateDefinition_getStateTypeList(self):
......
...@@ -1257,6 +1257,7 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin): ...@@ -1257,6 +1257,7 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
user = uf.getUserById('ERP5TypeTestCase').__of__(uf) user = uf.getUserById('ERP5TypeTestCase').__of__(uf)
self._callSetUpOnce() self._callSetUpOnce()
self._reindexSite()
# Enable reindexing # Enable reindexing
# Do hot reindexing # Does not work # Do hot reindexing # Does not work
......
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