[Erp5-report] r20181 - in /experimental/bt5/erp5_core_experimental: PortalTypeWorkflowChain...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Mar 27 17:48:56 CET 2008
Author: mikolaj
Date: Thu Mar 27 17:48:55 2008
New Revision: 20181
URL: http://svn.erp5.org?rev=20181&view=rev
Log:
added erp5_content_short cache clearing mechanism on changing title/id of the category
- meant to be used with ListField_with_jump experimental, to reflect in the ListField changes done to the category title right away.
Added:
experimental/bt5/erp5_core_experimental/PortalTypeWorkflowChainTemplateItem/
experimental/bt5/erp5_core_experimental/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/
experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/
experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/
experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow.xml
experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/interactions/
experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/interactions.xml
experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/interactions/category_update.xml
experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/scripts/
experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/scripts.xml
experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/scripts/Category_clearCache.xml
experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/variables.xml
experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/worklists.xml
Modified:
experimental/bt5/erp5_core_experimental/bt/change_log
experimental/bt5/erp5_core_experimental/bt/revision
experimental/bt5/erp5_core_experimental/bt/template_portal_type_workflow_chain_list
experimental/bt5/erp5_core_experimental/bt/template_workflow_id_list
Added: experimental/bt5/erp5_core_experimental/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_core_experimental/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml?rev=20181&view=auto
==============================================================================
--- experimental/bt5/erp5_core_experimental/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml (added)
+++ experimental/bt5/erp5_core_experimental/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml Thu Mar 27 17:48:55 2008
@@ -1,0 +1,6 @@
+<workflow_chain>
+ <chain>
+ <type>Category</type>
+ <workflow>category_interaction_workflow</workflow>
+ </chain>
+</workflow_chain>
Added: experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow.xml?rev=20181&view=auto
==============================================================================
--- experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow.xml (added)
+++ experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow.xml Thu Mar 27 17:48:55 2008
@@ -1,0 +1,55 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="InteractionWorkflowDefinition" module="Products.ERP5.InteractionWorkflow"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_objects</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>creation_guard</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>description</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>groups</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>category_interaction_workflow</string> </value>
+ </item>
+ <item>
+ <key> <string>manager_bypass</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string>Category Interaction Workflow</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/interactions.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/interactions.xml?rev=20181&view=auto
==============================================================================
--- experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/interactions.xml (added)
+++ experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/interactions.xml Thu Mar 27 17:48:55 2008
@@ -1,0 +1,37 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="Interaction" module="Products.ERP5.Interaction"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_mapping</string> </key>
+ <value>
+ <dictionary/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_objects</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>interactions</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/interactions/category_update.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/interactions/category_update.xml?rev=20181&view=auto
==============================================================================
--- experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/interactions/category_update.xml (added)
+++ experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/interactions/category_update.xml Thu Mar 27 17:48:55 2008
@@ -1,0 +1,94 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="InteractionDefinition" module="Products.ERP5.Interaction"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>actbox_category</string> </key>
+ <value> <string>workflow</string> </value>
+ </item>
+ <item>
+ <key> <string>actbox_name</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>actbox_url</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>activate_script_name</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>after_script_name</string> </key>
+ <value>
+ <list>
+ <string>Category_clearCache</string>
+ </list>
+ </value>
+ </item>
+ <item>
+ <key> <string>description</string> </key>
+ <value> <string>This interaction triggers on each category id/title update. It runs a script which clears the cache, so the changes are right away reflected in any ListFields.</string> </value>
+ </item>
+ <item>
+ <key> <string>guard</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>category_update</string> </value>
+ </item>
+ <item>
+ <key> <string>method_id</string> </key>
+ <value>
+ <list>
+ <string>_setTitle.*</string>
+ <string>_setId.*</string>
+ </list>
+ </value>
+ </item>
+ <item>
+ <key> <string>once_per_transaction</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
+ <key> <string>portal_type_filter</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>script_name</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>trigger_type</string> </key>
+ <value> <int>2</int> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/scripts.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/scripts.xml?rev=20181&view=auto
==============================================================================
--- experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/scripts.xml (added)
+++ experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/scripts.xml Thu Mar 27 17:48:55 2008
@@ -1,0 +1,37 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="Scripts" module="Products.DCWorkflow.Scripts"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_mapping</string> </key>
+ <value>
+ <dictionary/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_objects</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>scripts</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/scripts/Category_clearCache.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/scripts/Category_clearCache.xml?rev=20181&view=auto
==============================================================================
--- experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/scripts/Category_clearCache.xml (added)
+++ experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/scripts/Category_clearCache.xml Thu Mar 27 17:48:55 2008
@@ -1,0 +1,157 @@
+<?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>Python_magic</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>Script_magic</string> </key>
+ <value> <int>3</int> </value>
+ </item>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </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 clears cache, so the changes done\n
+ to the category are reflected right away.\n
+ (for instance in ListField displaying that category values)\n
+"""\n
+\n
+portal = state_change[\'object\'].getPortalObject()\n
+portal.portal_caches.clearCache(cache_factory_list=(\'erp5_content_short\',))\n
+</string> </value>
+ </item>
+ <item>
+ <key> <string>_code</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_filepath</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_params</string> </key>
+ <value> <string>state_change</string> </value>
+ </item>
+ <item>
+ <key> <string>_proxy_roles</string> </key>
+ <value>
+ <tuple>
+ <string>Manager</string>
+ </tuple>
+ </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>1</int> </value>
+ </item>
+ <item>
+ <key> <string>co_varnames</string> </key>
+ <value>
+ <tuple>
+ <string>state_change</string>
+ <string>_getattr_</string>
+ <string>_getitem_</string>
+ <string>portal</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>Category_clearCache</string> </value>
+ </item>
+ <item>
+ <key> <string>warnings</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/variables.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/variables.xml?rev=20181&view=auto
==============================================================================
--- experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/variables.xml (added)
+++ experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/variables.xml Thu Mar 27 17:48:55 2008
@@ -1,0 +1,31 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="Variables" module="Products.DCWorkflow.Variables"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_mapping</string> </key>
+ <value>
+ <dictionary/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>variables</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/worklists.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/worklists.xml?rev=20181&view=auto
==============================================================================
--- experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/worklists.xml (added)
+++ experimental/bt5/erp5_core_experimental/WorkflowTemplateItem/portal_workflow/category_interaction_workflow/worklists.xml Thu Mar 27 17:48:55 2008
@@ -1,0 +1,31 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="Worklists" module="Products.DCWorkflow.Worklists"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_mapping</string> </key>
+ <value>
+ <dictionary/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>worklists</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Modified: experimental/bt5/erp5_core_experimental/bt/change_log
URL: http://svn.erp5.org/experimental/bt5/erp5_core_experimental/bt/change_log?rev=20181&r1=20180&r2=20181&view=diff
==============================================================================
--- experimental/bt5/erp5_core_experimental/bt/change_log (original)
+++ experimental/bt5/erp5_core_experimental/bt/change_log Thu Mar 27 17:48:55 2008
@@ -1,3 +1,5 @@
+-
+
2008-03-14 Mikolaj
* moved listbox marking support to separate BT (erp5_xhtml_style_experimental)
Modified: experimental/bt5/erp5_core_experimental/bt/revision
URL: http://svn.erp5.org/experimental/bt5/erp5_core_experimental/bt/revision?rev=20181&r1=20180&r2=20181&view=diff
==============================================================================
--- experimental/bt5/erp5_core_experimental/bt/revision (original)
+++ experimental/bt5/erp5_core_experimental/bt/revision Thu Mar 27 17:48:55 2008
@@ -1,1 +1,1 @@
-23
+24
Modified: experimental/bt5/erp5_core_experimental/bt/template_portal_type_workflow_chain_list
URL: http://svn.erp5.org/experimental/bt5/erp5_core_experimental/bt/template_portal_type_workflow_chain_list?rev=20181&r1=20180&r2=20181&view=diff
==============================================================================
--- experimental/bt5/erp5_core_experimental/bt/template_portal_type_workflow_chain_list (original)
+++ experimental/bt5/erp5_core_experimental/bt/template_portal_type_workflow_chain_list Thu Mar 27 17:48:55 2008
@@ -1,0 +1,1 @@
+Category | category_interaction_workflow
Modified: experimental/bt5/erp5_core_experimental/bt/template_workflow_id_list
URL: http://svn.erp5.org/experimental/bt5/erp5_core_experimental/bt/template_workflow_id_list?rev=20181&r1=20180&r2=20181&view=diff
==============================================================================
--- experimental/bt5/erp5_core_experimental/bt/template_workflow_id_list (original)
+++ experimental/bt5/erp5_core_experimental/bt/template_workflow_id_list Thu Mar 27 17:48:55 2008
@@ -1,0 +1,1 @@
+category_interaction_workflow
More information about the Erp5-report
mailing list