Commit f3e09783 authored by iv's avatar iv

ERP5Workflow: rename some forgotten default_ to variable_

parent 08c079bf
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>default_value_property</string> </value> <value> <string>variable_value_property</string> </value>
</item> </item>
<item> <item>
<key> <string>mode</string> </key> <key> <string>mode</string> </key>
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
</item> </item>
<item> <item>
<key> <string>storage_id</string> </key> <key> <string>storage_id</string> </key>
<value> <string>default_value</string> </value> <value> <string>variable_value</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -126,7 +126,7 @@ class TestERP5Workflow(ERP5TypeTestCase): ...@@ -126,7 +126,7 @@ class TestERP5Workflow(ERP5TypeTestCase):
v1 = workflow.newContent(portal_type='Variable', v1 = workflow.newContent(portal_type='Variable',
title='actor') title='actor')
v1.setReference('actor') v1.setReference('actor')
v1.default_expression = 'user/getUserName' v1.variable_expression = 'user/getUserName'
self.getPortalObject().portal_types._getOb('Folder').edit(type_workflow_list=('wf')) self.getPortalObject().portal_types._getOb('Folder').edit(type_workflow_list=('wf'))
doc = self.portal.newContent(portal_type='Folder', id='test_doc') doc = self.portal.newContent(portal_type='Folder', id='test_doc')
workflow._executeTransition(doc,t1) workflow._executeTransition(doc,t1)
......
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