diff --git a/bt5/erp5_web_shacache/SkinTemplateItem/portal_skins/erp5_web_shacache_core/WebSite_publishDocumentByActivity.xml b/bt5/erp5_web_shacache/SkinTemplateItem/portal_skins/erp5_web_shacache_core/WebSite_publishDocumentByActivity.xml new file mode 100644 index 0000000000000000000000000000000000000000..cdac712cc9548c7fac07dfdfb7340cc95c35e3cf --- /dev/null +++ b/bt5/erp5_web_shacache/SkinTemplateItem/portal_skins/erp5_web_shacache_core/WebSite_publishDocumentByActivity.xml @@ -0,0 +1,69 @@ +<?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>portal = context.getPortalObject()\n +if portal.portal_workflow.isTransitionPossible(context, \'publish\'):\n + context.publish()\n +</string> </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>WebSite_publishDocumentByActivity</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_shacache/bt/revision b/bt5/erp5_web_shacache/bt/revision index 597975b413303a8c3cb711640e290794dc8077a8..dce6588ca1420a69eea5699f2ec5d666daf16a6a 100644 --- a/bt5/erp5_web_shacache/bt/revision +++ b/bt5/erp5_web_shacache/bt/revision @@ -1 +1 @@ -35 \ No newline at end of file +36 \ No newline at end of file