Commit a0a9321f authored by Łukasz Nowak's avatar Łukasz Nowak

- set preferred listbox view mode line count to default during reset, to

   allow tests to set it to own value


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40380 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 208055f0
...@@ -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>
...@@ -111,6 +108,7 @@ resetSelection(\'bar_selection\')\n ...@@ -111,6 +108,7 @@ resetSelection(\'bar_selection\')\n
pref = getattr(context.portal_preferences, "erp5_ui_test_preference", None)\n pref = getattr(context.portal_preferences, "erp5_ui_test_preference", None)\n
if pref is None:\n if pref is None:\n
pref = context.portal_preferences.newContent(id="erp5_ui_test_preference", portal_type="Preference")\n pref = context.portal_preferences.newContent(id="erp5_ui_test_preference", portal_type="Preference")\n
pref.setPreferredListboxViewModeLineCount(None)\n
pref.setPreferredListboxListModeLineCount(10)\n pref.setPreferredListboxListModeLineCount(10)\n
if pref.getPreferenceState() == \'disabled\':\n if pref.getPreferenceState() == \'disabled\':\n
pref.enable()\n pref.enable()\n
......
632 633
\ 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