From d34c515bcad4ebfd5a9ade7e970412d3cd431c96 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Tue, 1 Jun 2010 12:54:17 +0000
Subject: [PATCH] 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
---
 .../erp5_ui_test_core/BTZuite_setPreference.xml           | 8 +++++++-
 bt5/erp5_ui_test_core/bt/revision                         | 2 +-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/BTZuite_setPreference.xml b/bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/BTZuite_setPreference.xml
index b9c65d6a15..62a0665db9 100644
--- a/bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/BTZuite_setPreference.xml
+++ b/bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/BTZuite_setPreference.xml
@@ -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
diff --git a/bt5/erp5_ui_test_core/bt/revision b/bt5/erp5_ui_test_core/bt/revision
index b5045cc404..8fdd954df9 100644
--- a/bt5/erp5_ui_test_core/bt/revision
+++ b/bt5/erp5_ui_test_core/bt/revision
@@ -1 +1 @@
-21
\ No newline at end of file
+22
\ No newline at end of file
-- 
2.30.9