Commit d34c515b authored by Jérome Perrin's avatar Jérome Perrin

create a site level preference, and set oood address there.

It will be set at site level, so if a user preference is created later it will not overlap

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35863 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1db84a0d
......@@ -61,9 +61,15 @@ subversion working copy paths. It\'s not meant to be called by zelenium tests.\n
\n
pref = getattr(context.portal_preferences, "erp5_ui_test_preference", 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",\n
portal_type="Preference",\n
priority=1)\n
\n
pref.setPreferredSubversionWorkingCopyList(tuple(working_copy_list.split(\',\')))\n
pref.setPreferredHtmlStyleUnsavedFormWarning(False)\n
pref.setPreferredOoodocServerAddress(\'localhost\')\n
pref.setPreferredOoodocServerPortNumber(8080)\n
\n
if pref.getPreferenceState() == \'disabled\':\n
pref.enable()\n
\n
......
21
\ No newline at end of file
22
\ 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