[Erp5-report] r36129 ivan - in /erp5/trunk/bt5/erp5_km_ui_test: PathTemplateItem/web_site_m...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jun 9 10:10:23 CEST 2010


Author: ivan
Date: Wed Jun  9 10:10:23 2010
New Revision: 36129

URL: http://svn.erp5.org?rev=36129&view=rev
Log:
Set test footer default Web Page.
Publish small set of Web Pages that can be used in further UI tests.

Modified:
    erp5/trunk/bt5/erp5_km_ui_test/PathTemplateItem/web_site_module/km_test_web_site.xml
    erp5/trunk/bt5/erp5_km_ui_test/SkinTemplateItem/portal_skins/erp5_km_ui_test/WebSiteModule_createKMSite.xml
    erp5/trunk/bt5/erp5_km_ui_test/bt/revision

Modified: erp5/trunk/bt5/erp5_km_ui_test/PathTemplateItem/web_site_module/km_test_web_site.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_km_ui_test/PathTemplateItem/web_site_module/km_test_web_site.xml?rev=36129&r1=36128&r2=36129&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_km_ui_test/PathTemplateItem/web_site_module/km_test_web_site.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_km_ui_test/PathTemplateItem/web_site_module/km_test_web_site.xml [utf8] Wed Jun  9 10:10:23 2010
@@ -137,6 +137,26 @@
                       <value> <string>float</string> </value>
                   </item>
                 </dictionary>
+                <dictionary>
+                  <item>
+                      <key> <string>id</string> </key>
+                      <value> <string>layout_max_breadcrumb_length</string> </value>
+                  </item>
+                  <item>
+                      <key> <string>type</string> </key>
+                      <value> <string>int</string> </value>
+                  </item>
+                </dictionary>
+                <dictionary>
+                  <item>
+                      <key> <string>id</string> </key>
+                      <value> <string>layout_footer_reference</string> </value>
+                  </item>
+                  <item>
+                      <key> <string>type</string> </key>
+                      <value> <string>string</string> </value>
+                  </item>
+                </dictionary>
               </tuple>
             </value>
         </item>
@@ -190,6 +210,16 @@
         <item>
             <key> <string>layout_configuration_form_id</string> </key>
             <value> <string>WebSection_viewKMMinimalThemeConfiguration</string> </value>
+        </item>
+        <item>
+            <key> <string>layout_footer_reference</string> </key>
+            <value> <string>minimal_km_footer</string> </value>
+        </item>
+        <item>
+            <key> <string>layout_max_breadcrumb_length</string> </key>
+            <value>
+              <none/>
+            </value>
         </item>
         <item>
             <key> <string>layout_navigation_menu_opacity</string> </key>

Modified: erp5/trunk/bt5/erp5_km_ui_test/SkinTemplateItem/portal_skins/erp5_km_ui_test/WebSiteModule_createKMSite.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_km_ui_test/SkinTemplateItem/portal_skins/erp5_km_ui_test/WebSiteModule_createKMSite.xml?rev=36129&r1=36128&r2=36129&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_km_ui_test/SkinTemplateItem/portal_skins/erp5_km_ui_test/WebSiteModule_createKMSite.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_km_ui_test/SkinTemplateItem/portal_skins/erp5_km_ui_test/WebSiteModule_createKMSite.xml [utf8] Wed Jun  9 10:10:23 2010
@@ -58,6 +58,8 @@
 """\n
   Initialize a KM site.\n
 """\n
+portal = context.getPortalObject()\n
+\n
 if site_id not in context.objectIds():\n
   km_website = context.newContent(id = site_id, \\\n
                                   title = title, \n
@@ -86,6 +88,15 @@
                     preferred_ooodoc_server_address = context.Zuite_getConversionServerDict()["oood_hostname"],\n
                     preferred_ooodoc_server_port_number = context.Zuite_getConversionServerDict()["oood_port"])\n
   km_preference.enable()\n
+\n
+# publish the test web page so we can use it in tests for setting default WEb Section page\n
+for reference in (\'minimal_km_footer\', \'km.web.site.test.page\',):\n
+  km_page = portal.portal_catalog.getResultValue(portal_type = \'Web Page\',\n
+                                                 reference = reference)\n
+  if km_page.getValidationState()==\'draft\':\n
+    km_page.publish()\n
+# clear cache so UI is regenarated\n
+portal.portal_caches.clearAllCache()\n
 \n
 return "Created Successfully."\n
 
@@ -138,12 +149,16 @@
                             <string>title</string>
                             <string>_getattr_</string>
                             <string>context</string>
+                            <string>portal</string>
                             <string>km_website</string>
                             <string>True</string>
                             <string>km_preference_id</string>
                             <string>portal_preferences</string>
                             <string>_getitem_</string>
                             <string>km_preference</string>
+                            <string>_getiter_</string>
+                            <string>reference</string>
+                            <string>km_page</string>
                           </tuple>
                         </value>
                     </item>

Modified: erp5/trunk/bt5/erp5_km_ui_test/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_km_ui_test/bt/revision?rev=36129&r1=36128&r2=36129&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_km_ui_test/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_km_ui_test/bt/revision [utf8] Wed Jun  9 10:10:23 2010
@@ -1,1 +1,1 @@
-53
+54




More information about the Erp5-report mailing list