Commit 3239ad71 authored by Jérome Perrin's avatar Jérome Perrin

preference was already globally enabled

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38923 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cbfc0035
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
......@@ -57,11 +54,12 @@
preference_tool = context.portal_preferences\n
preference = getattr(preference_tool, "access_tab_test_preference", None)\n
if preference is not None:\n
preference.disable()\n
# enable the erp5_ui_test_preference again....\n
erp5_ui_test_preference = getattr(context.portal_preferences, "erp5_ui_test_preference", None)\n
if erp5_ui_test_preference is not None:\n
erp5_ui_test_preference.enable()\n
preference.disable()\n
# enable the erp5_ui_test_preference again....\n
erp5_ui_test_preference = getattr(context.portal_preferences, "erp5_ui_test_preference", None)\n
if erp5_ui_test_preference is not None and \\\n
erp5_ui_test_preference.getPreferenceState() in (\'draft\', \'disabled\'):\n
erp5_ui_test_preference.enable()\n
\n
return \'Disabled Preference Successfully.\'\n
</string> </value>
......
615
\ No newline at end of file
616
\ 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