Commit dd10f17a authored by Rafael Monnerat's avatar Rafael Monnerat

Check if is running erp5_ui_test_preference exists and enable it.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21669 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 379b4fe7
......@@ -69,7 +69,12 @@
preference = getattr(preference_tool, "access_tab_test_preference", None)\n
if preference is not None:\n
preference.disable()\n
return \'Disabled Preference Successfully.\'\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
\n
return \'Disabled Preference Successfully.\'\n
</string> </value>
</item>
<item>
......@@ -124,6 +129,7 @@ if preference is not None:\n
<string>getattr</string>
<string>None</string>
<string>preference</string>
<string>erp5_ui_test_preference</string>
</tuple>
</value>
</item>
......
366
\ No newline at end of file
367
\ 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