diff --git a/bt5/erp5_km_ui_test/SkinTemplateItem/portal_skins/erp5_km_ui_test.xml b/bt5/erp5_km_ui_test/SkinTemplateItem/portal_skins/erp5_km_ui_test.xml index 683c6e5ad61987a7bed2d5f9ba96f0351b848d0e..27d1eaeeaea0d2f12122d486a36d95af7a6a9da6 100644 --- a/bt5/erp5_km_ui_test/SkinTemplateItem/portal_skins/erp5_km_ui_test.xml +++ b/bt5/erp5_km_ui_test/SkinTemplateItem/portal_skins/erp5_km_ui_test.xml @@ -9,12 +9,33 @@ </pickle> <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> <value> <string>erp5_km_ui_test</string> </value> diff --git a/bt5/erp5_km_ui_test/SkinTemplateItem/portal_skins/erp5_km_ui_test/Document_getPreferredDocumentMetadataDiscoveryOrderList.xml b/bt5/erp5_km_ui_test/SkinTemplateItem/portal_skins/erp5_km_ui_test/Document_getPreferredDocumentMetadataDiscoveryOrderList.xml new file mode 100644 index 0000000000000000000000000000000000000000..1aacc197bbe78d7b68555747c9e4fb3b7d42f64d --- /dev/null +++ b/bt5/erp5_km_ui_test/SkinTemplateItem/portal_skins/erp5_km_ui_test/Document_getPreferredDocumentMetadataDiscoveryOrderList.xml @@ -0,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> diff --git a/bt5/erp5_km_ui_test/bt/revision b/bt5/erp5_km_ui_test/bt/revision index 7c6ba0fe181de786f8f09b1b8cc1ad6bbc1dd5a4..2ebc6516c7df177c819b752dfac7b5ce5064189f 100644 --- a/bt5/erp5_km_ui_test/bt/revision +++ b/bt5/erp5_km_ui_test/bt/revision @@ -1 +1 @@ -55 \ No newline at end of file +56 \ No newline at end of file