diff --git a/bt5/erp5_dms_conversion_catalog/SkinTemplateItem/portal_skins/erp5_dms_conversion_catalog/WebPage_preConvert.xml b/bt5/erp5_dms_conversion_catalog/SkinTemplateItem/portal_skins/erp5_dms_conversion_catalog/WebPage_preConvert.xml new file mode 100644 index 0000000000000000000000000000000000000000..07639519b25cc1d341418b56de5d589a0efccd20 --- /dev/null +++ b/bt5/erp5_dms_conversion_catalog/SkinTemplateItem/portal_skins/erp5_dms_conversion_catalog/WebPage_preConvert.xml @@ -0,0 +1,84 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + </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 + Do actual conversion of Web Page. As it involves cloudoo use serialization tag and activity.\n +"""\n +portal = context.getPortalObject()\n +\n +format_kw = {\'format\': format,\n + \'quality\': quality}\n +for display in display_list:\n + format_kw[\'display\'] = display\n + context.activate(serialization_tag=\'pre_convert\').convert(**format_kw)\n +</string> </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>format, quality, display_list</string> </value> + </item> + <item> + <key> <string>_proxy_roles</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>WebPage_preConvert</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_dms_conversion_catalog/bt/revision b/bt5/erp5_dms_conversion_catalog/bt/revision index da2d3988d7d1a255376770b1e87394ebb42febb3..3f10ffe7a4c473619c926cfb1e8d95e726e5a0ec 100644 --- a/bt5/erp5_dms_conversion_catalog/bt/revision +++ b/bt5/erp5_dms_conversion_catalog/bt/revision @@ -1 +1 @@ -14 \ No newline at end of file +15 \ No newline at end of file