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 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -60,7 +57,8 @@ if preference is not None:\n ...@@ -60,7 +57,8 @@ if preference is not None:\n
preference.disable()\n preference.disable()\n
# enable the erp5_ui_test_preference again....\n # enable the erp5_ui_test_preference again....\n
erp5_ui_test_preference = getattr(context.portal_preferences, "erp5_ui_test_preference", None)\n erp5_ui_test_preference = getattr(context.portal_preferences, "erp5_ui_test_preference", None)\n
if erp5_ui_test_preference is not 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 erp5_ui_test_preference.enable()\n
\n \n
return \'Disabled Preference Successfully.\'\n return \'Disabled Preference Successfully.\'\n
......
615 616
\ 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