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 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -88,6 +85,7 @@ wf_states = context.portal_workflow[workflow_id].states\n
wf_transitions = context.portal_workflow[workflow_id].transitions\n
\n
next_serial = None\n
previous_obj = None\n
for workflow_item in workflow_item_list:\n
# XXX removing str method generate a strange bug\n
o = newTempBase(portal_object, str(i))\n
......@@ -218,15 +216,16 @@ return result\n
<string>wf_transitions</string>
<string>None</string>
<string>next_serial</string>
<string>previous_obj</string>
<string>workflow_item</string>
<string>str</string>
<string>o</string>
<string>_inplacevar_</string>
<string>key</string>
<string>value</string>
<string>compatibility_name</string>
<string>len</string>
<string>same_type</string>
<string>previous_obj</string>
<string>getattr</string>
</tuple>
</value>
......
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -87,7 +84,7 @@ for p in portal.portal_preferences.searchFolder(spec=(\'ERP5 Preference\',)) :\n
\'disable_action\',\n
wf_id=\'preference_workflow\', \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
LOG("not authorized to deactivate %s"%p)\n
</string> </value>
......@@ -149,7 +146,6 @@ for p in portal.portal_preferences.searchFolder(spec=(\'ERP5 Preference\',)) :\n
<string>N_</string>
<string>_getiter_</string>
<string>p</string>
<string>context</string>
<string>a</string>
</tuple>
</value>
......
528
\ No newline at end of file
530
\ 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