[Erp5-report] r17424 - in /erp5/trunk/bt5/erp5_immobilisation: PathTemplateItem/portal_rule...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Nov 6 17:51:28 CET 2007
Author: alex
Date: Tue Nov 6 17:51:27 2007
New Revision: 17424
URL: http://svn.erp5.org?rev=17424&view=rev
Log:
changes to support new style Rules
- added reference, version and test_method_id to rule objects exported as paths
- added group_type_list in rules type definitions
- added rule test scripts in portal_skins
- added rule_validation_workflow to rule workflow chains
Added:
erp5/trunk/bt5/erp5_immobilisation/SkinTemplateItem/portal_skins/erp5_immobilisation/AmortisationRule_test.xml
Modified:
erp5/trunk/bt5/erp5_immobilisation/PathTemplateItem/portal_rules/default_amortisation_rule.xml
erp5/trunk/bt5/erp5_immobilisation/PortalTypeTemplateItem/portal_types/Amortisation%20Rule.xml
erp5/trunk/bt5/erp5_immobilisation/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
erp5/trunk/bt5/erp5_immobilisation/bt/revision
erp5/trunk/bt5/erp5_immobilisation/bt/template_portal_type_workflow_chain_list
Modified: erp5/trunk/bt5/erp5_immobilisation/PathTemplateItem/portal_rules/default_amortisation_rule.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_immobilisation/PathTemplateItem/portal_rules/default_amortisation_rule.xml?rev=17424&r1=17423&r2=17424&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_immobilisation/PathTemplateItem/portal_rules/default_amortisation_rule.xml (original)
+++ erp5/trunk/bt5/erp5_immobilisation/PathTemplateItem/portal_rules/default_amortisation_rule.xml Tue Nov 6 17:51:27 2007
@@ -3,15 +3,36 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
- <tuple>
- <string>Products.ERP5Type.Document.AmortisationRule</string>
- <string>AmortisationRule</string>
- </tuple>
- <none/>
+ <global name="AmortisationRule" module="Products.ERP5Type.Document.AmortisationRule"/>
+ <tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
+ <item>
+ <key> <string>_Add_portal_content_Permission</string> </key>
+ <value>
+ <tuple>
+ <string>Manager</string>
+ </tuple>
+ </value>
+ </item>
+ <item>
+ <key> <string>_Delete_objects_Permission</string> </key>
+ <value>
+ <tuple>
+ <string>Manager</string>
+ </tuple>
+ </value>
+ </item>
+ <item>
+ <key> <string>_Modify_portal_content_Permission</string> </key>
+ <value>
+ <tuple>
+ <string>Manager</string>
+ </tuple>
+ </value>
+ </item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
@@ -22,6 +43,12 @@
<key> <string>_count</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+ </value>
+ </item>
+ <item>
+ <key> <string>_identity_criterion</string> </key>
+ <value>
+ <dictionary/>
</value>
</item>
<item>
@@ -37,10 +64,20 @@
</value>
</item>
<item>
+ <key> <string>_range_criterion</string> </key>
+ <value>
+ <dictionary/>
+ </value>
+ </item>
+ <item>
<key> <string>_tree</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
+ </item>
+ <item>
+ <key> <string>default_reference</string> </key>
+ <value> <string>default_amortisation_rule</string> </value>
</item>
<item>
<key> <string>id</string> </key>
@@ -61,6 +98,14 @@
<value> <string>Amortisation Rule</string> </value>
</item>
<item>
+ <key> <string>test_method_id</string> </key>
+ <value>
+ <tuple>
+ <string>AmortisationRule_test</string>
+ </tuple>
+ </value>
+ </item>
+ <item>
<key> <string>title</string> </key>
<value> <string>Default Amortisation Rule</string> </value>
</item>
@@ -70,30 +115,22 @@
<none/>
</value>
</item>
+ <item>
+ <key> <string>version</string> </key>
+ <value> <string>1</string> </value>
+ </item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
- <tuple>
- <tuple>
- <string>BTrees.Length</string>
- <string>Length</string>
- </tuple>
- <none/>
- </tuple>
+ <global name="Length" module="BTrees.Length"/>
</pickle>
<pickle> <int>0</int> </pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
- <tuple>
- <tuple>
- <string>BTrees.OOBTree</string>
- <string>OOBTree</string>
- </tuple>
- <none/>
- </tuple>
+ <global name="OOBTree" module="BTrees._OOBTree"/>
</pickle>
<pickle>
<none/>
@@ -101,13 +138,7 @@
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
- <tuple>
- <tuple>
- <string>BTrees.OOBTree</string>
- <string>OOBTree</string>
- </tuple>
- <none/>
- </tuple>
+ <global name="OOBTree" module="BTrees._OOBTree"/>
</pickle>
<pickle>
<none/>
Modified: erp5/trunk/bt5/erp5_immobilisation/PortalTypeTemplateItem/portal_types/Amortisation%20Rule.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_immobilisation/PortalTypeTemplateItem/portal_types/Amortisation%2520Rule.xml?rev=17424&r1=17423&r2=17424&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_immobilisation/PortalTypeTemplateItem/portal_types/Amortisation%20Rule.xml (original)
+++ erp5/trunk/bt5/erp5_immobilisation/PortalTypeTemplateItem/portal_types/Amortisation%20Rule.xml Tue Nov 6 17:51:27 2007
@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
- <tuple>
- <string>Products.ERP5Type.ERP5Type</string>
- <string>ERP5TypeInformation</string>
- </tuple>
- <none/>
+ <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/>
+ <tuple/>
</tuple>
</pickle>
<pickle>
@@ -81,7 +78,9 @@
<item>
<key> <string>group_list</string> </key>
<value>
- <tuple/>
+ <tuple>
+ <string>rule</string>
+ </tuple>
</value>
</item>
<item>
Modified: erp5/trunk/bt5/erp5_immobilisation/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_immobilisation/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml?rev=17424&r1=17423&r2=17424&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_immobilisation/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml (original)
+++ erp5/trunk/bt5/erp5_immobilisation/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml Tue Nov 6 17:51:27 2007
@@ -1,4 +1,8 @@
<workflow_chain>
+ <chain>
+ <type>Amortisation Rule</type>
+ <workflow>rule_validation_workflow, edit_workflow</workflow>
+ </chain>
<chain>
<type>Amortisation Transaction</type>
<workflow>delivery_causality_interaction_workflow, amortisation_transaction_causality_workflow, accounting_workflow, delivery_simulation_interaction_workflow, edit_workflow</workflow>
Added: erp5/trunk/bt5/erp5_immobilisation/SkinTemplateItem/portal_skins/erp5_immobilisation/AmortisationRule_test.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_immobilisation/SkinTemplateItem/portal_skins/erp5_immobilisation/AmortisationRule_test.xml?rev=17424&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_immobilisation/SkinTemplateItem/portal_skins/erp5_immobilisation/AmortisationRule_test.xml (added)
+++ erp5/trunk/bt5/erp5_immobilisation/SkinTemplateItem/portal_skins/erp5_immobilisation/AmortisationRule_test.xml Tue Nov 6 17:51:27 2007
@@ -1,0 +1,140 @@
+<?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>return False\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>rule</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>1</int> </value>
+ </item>
+ <item>
+ <key> <string>co_varnames</string> </key>
+ <value>
+ <tuple>
+ <string>rule</string>
+ <string>False</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>AmortisationRule_test</string> </value>
+ </item>
+ <item>
+ <key> <string>warnings</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Modified: erp5/trunk/bt5/erp5_immobilisation/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_immobilisation/bt/revision?rev=17424&r1=17423&r2=17424&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_immobilisation/bt/revision (original)
+++ erp5/trunk/bt5/erp5_immobilisation/bt/revision Tue Nov 6 17:51:27 2007
@@ -1,1 +1,1 @@
-140
+142
Modified: erp5/trunk/bt5/erp5_immobilisation/bt/template_portal_type_workflow_chain_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_immobilisation/bt/template_portal_type_workflow_chain_list?rev=17424&r1=17423&r2=17424&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_immobilisation/bt/template_portal_type_workflow_chain_list (original)
+++ erp5/trunk/bt5/erp5_immobilisation/bt/template_portal_type_workflow_chain_list Tue Nov 6 17:51:27 2007
@@ -1,3 +1,5 @@
+Amortisation Rule | edit_workflow
+Amortisation Rule | rule_validation_workflow
Amortisation Transaction Line | delivery_movement_causality_interaction_workflow
Amortisation Transaction Line | delivery_movement_simulation_interaction_workflow
Amortisation Transaction Line | edit_workflow
More information about the Erp5-report
mailing list