[Erp5-report] r36150 ivan - in /erp5/trunk/bt5/erp5_km_ui_test: SkinTemplateItem/portal_ski...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jun 9 12:42:25 CEST 2010


Author: ivan
Date: Wed Jun  9 12:42:24 2010
New Revision: 36150

URL: http://svn.erp5.org?rev=36150&view=rev
Log:
KM UI tests rely on preset document metadata discovery order so define it explicitly so this bt5 can be plugged into any environment and used for testing it.

Added:
    erp5/trunk/bt5/erp5_km_ui_test/SkinTemplateItem/portal_skins/erp5_km_ui_test/Document_getPreferredDocumentMetadataDiscoveryOrderList.xml
Modified:
    erp5/trunk/bt5/erp5_km_ui_test/SkinTemplateItem/portal_skins/erp5_km_ui_test.xml
    erp5/trunk/bt5/erp5_km_ui_test/bt/revision

Modified: erp5/trunk/bt5/erp5_km_ui_test/SkinTemplateItem/portal_skins/erp5_km_ui_test.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_km_ui_test/SkinTemplateItem/portal_skins/erp5_km_ui_test.xml?rev=36150&r1=36149&r2=36150&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_km_ui_test/SkinTemplateItem/portal_skins/erp5_km_ui_test.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_km_ui_test/SkinTemplateItem/portal_skins/erp5_km_ui_test.xml [utf8] Wed Jun  9 12:42:24 2010
@@ -10,10 +10,31 @@
     <pickle>
       <dictionary>
         <item>
+            <key> <string>_local_properties</string> </key>
+            <value>
+              <tuple>
+                <dictionary>
+                  <item>
+                      <key> <string>id</string> </key>
+                      <value> <string>business_template_skin_layer_priority</string> </value>
+                  </item>
+                  <item>
+                      <key> <string>type</string> </key>
+                      <value> <string>float</string> </value>
+                  </item>
+                </dictionary>
+              </tuple>
+            </value>
+        </item>
+        <item>
             <key> <string>_objects</string> </key>
             <value>
               <tuple/>
             </value>
+        </item>
+        <item>
+            <key> <string>business_template_skin_layer_priority</string> </key>
+            <value> <float>52.0</float> </value>
         </item>
         <item>
             <key> <string>id</string> </key>

Added: erp5/trunk/bt5/erp5_km_ui_test/SkinTemplateItem/portal_skins/erp5_km_ui_test/Document_getPreferredDocumentMetadataDiscoveryOrderList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_km_ui_test/SkinTemplateItem/portal_skins/erp5_km_ui_test/Document_getPreferredDocumentMetadataDiscoveryOrderList.xml?rev=36150&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_km_ui_test/SkinTemplateItem/portal_skins/erp5_km_ui_test/Document_getPreferredDocumentMetadataDiscoveryOrderList.xml (added)
+++ erp5/trunk/bt5/erp5_km_ui_test/SkinTemplateItem/portal_skins/erp5_km_ui_test/Document_getPreferredDocumentMetadataDiscoveryOrderList.xml [utf8] Wed Jun  9 12:42:24 2010
@@ -1,0 +1,142 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>Script_magic</string> </key>
+            <value> <int>3</int> </value>
+        </item>
+        <item>
+            <key> <string>_bind_names</string> </key>
+            <value>
+              <object>
+                <klass>
+                  <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
+                </klass>
+                <tuple/>
+                <state>
+                  <dictionary>
+                    <item>
+                        <key> <string>_asgns</string> </key>
+                        <value>
+                          <dictionary>
+                            <item>
+                                <key> <string>name_container</string> </key>
+                                <value> <string>container</string> </value>
+                            </item>
+                            <item>
+                                <key> <string>name_context</string> </key>
+                                <value> <string>context</string> </value>
+                            </item>
+                            <item>
+                                <key> <string>name_m_self</string> </key>
+                                <value> <string>script</string> </value>
+                            </item>
+                            <item>
+                                <key> <string>name_subpath</string> </key>
+                                <value> <string>traverse_subpath</string> </value>
+                            </item>
+                          </dictionary>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>_body</string> </key>
+            <value> <string>"""\n
+This script is part of erp5_ingestion bt5.\n
+It is used to define the preference order of data sources used when \n
+ingesting a document.\n
+ \n
+Data source listed first is preferred over one listed later.\n
+\n
+Possible data sources:\n
+\n
+ * \'input\' - data that is already set on the document (through web\n
+interface for example), supplied in the email text or submitted\n
+from the contribute form.\n
+\n
+ * \'content\' - metadata available in document content itself\n
+\n
+ * \'file_name\' - file name of the ingested document\n
+\n
+ * \'user_login\' - user login of the logged in user\n
+\n
+"""\n
+order = [\'input\', \'content\', \'file_name\', \'user_login\']\n
+return order\n
+</string> </value>
+        </item>
+        <item>
+            <key> <string>_code</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_params</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>errors</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>func_code</string> </key>
+            <value>
+              <object>
+                <klass>
+                  <global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
+                </klass>
+                <tuple/>
+                <state>
+                  <dictionary>
+                    <item>
+                        <key> <string>co_argcount</string> </key>
+                        <value> <int>0</int> </value>
+                    </item>
+                    <item>
+                        <key> <string>co_varnames</string> </key>
+                        <value>
+                          <tuple>
+                            <string>order</string>
+                          </tuple>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>func_defaults</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>Document_getPreferredDocumentMetadataDiscoveryOrderList</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

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=36150&r1=36149&r2=36150&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 12:42:24 2010
@@ -1,1 +1,1 @@
-55
+56




More information about the Erp5-report mailing list