Commit 2b01df61 authored by Jérome Perrin's avatar Jérome Perrin

Fix undefined names in Base_getWorkflowHistoryItemList and disableOtherPreferences

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17249 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6d3a36d9
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -88,6 +85,7 @@ wf_states = context.portal_workflow[workflow_id].states\n ...@@ -88,6 +85,7 @@ wf_states = context.portal_workflow[workflow_id].states\n
wf_transitions = context.portal_workflow[workflow_id].transitions\n wf_transitions = context.portal_workflow[workflow_id].transitions\n
\n \n
next_serial = None\n next_serial = None\n
previous_obj = None\n
for workflow_item in workflow_item_list:\n for workflow_item in workflow_item_list:\n
# XXX removing str method generate a strange bug\n # XXX removing str method generate a strange bug\n
o = newTempBase(portal_object, str(i))\n o = newTempBase(portal_object, str(i))\n
...@@ -218,15 +216,16 @@ return result\n ...@@ -218,15 +216,16 @@ return result\n
<string>wf_transitions</string> <string>wf_transitions</string>
<string>None</string> <string>None</string>
<string>next_serial</string> <string>next_serial</string>
<string>previous_obj</string>
<string>workflow_item</string> <string>workflow_item</string>
<string>str</string> <string>str</string>
<string>o</string> <string>o</string>
<string>_inplacevar_</string>
<string>key</string> <string>key</string>
<string>value</string> <string>value</string>
<string>compatibility_name</string> <string>compatibility_name</string>
<string>len</string> <string>len</string>
<string>same_type</string> <string>same_type</string>
<string>previous_obj</string>
<string>getattr</string> <string>getattr</string>
</tuple> </tuple>
</value> </value>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -87,7 +84,7 @@ for p in portal.portal_preferences.searchFolder(spec=(\'ERP5 Preference\',)) :\n ...@@ -87,7 +84,7 @@ for p in portal.portal_preferences.searchFolder(spec=(\'ERP5 Preference\',)) :\n
\'disable_action\',\n \'disable_action\',\n
wf_id=\'preference_workflow\', \n wf_id=\'preference_workflow\', \n
comment=N_(\'Automatically disabled when enabling ${preference_title}\',\n comment=N_(\'Automatically disabled when enabling ${preference_title}\',\n
mapping={\'preference_title\': context.getTitle()}) )\n mapping={\'preference_title\': pref.getTitle()}) )\n
except \'Unauthorized\', a :\n except \'Unauthorized\', a :\n
LOG("not authorized to deactivate %s"%p)\n LOG("not authorized to deactivate %s"%p)\n
</string> </value> </string> </value>
...@@ -149,7 +146,6 @@ for p in portal.portal_preferences.searchFolder(spec=(\'ERP5 Preference\',)) :\n ...@@ -149,7 +146,6 @@ for p in portal.portal_preferences.searchFolder(spec=(\'ERP5 Preference\',)) :\n
<string>N_</string> <string>N_</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>p</string> <string>p</string>
<string>context</string>
<string>a</string> <string>a</string>
</tuple> </tuple>
</value> </value>
......
528 530
\ No newline at end of file \ No newline at end of file
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