diff --git a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/AccessTabZuite_disablePreference.xml b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/AccessTabZuite_disablePreference.xml index 6d348ea67e5014b11f97e6f0fbb9442d5e2305d7..5d8260b68882a4a6252f6c2dd99fa89784b32f6e 100644 --- a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/AccessTabZuite_disablePreference.xml +++ b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/AccessTabZuite_disablePreference.xml @@ -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> diff --git a/bt5/erp5_ui_test/bt/revision b/bt5/erp5_ui_test/bt/revision index 633fa34c7fada9bd58cc890eacb04392b5a0330f..ca6d18c238717ddb04f0e8050d4566fa3493b016 100644 --- a/bt5/erp5_ui_test/bt/revision +++ b/bt5/erp5_ui_test/bt/revision @@ -1 +1 @@ -615 \ No newline at end of file +616 \ No newline at end of file