[Erp5-report] r42861 nicolas.dumazet - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: Wo...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Feb 1 04:22:34 CET 2011


Author: nicolas.dumazet
Date: Tue Feb  1 04:22:34 2011
New Revision: 42861

URL: http://svn.erp5.org?rev=42861&view=rev
Log:
2011-02-01 nicolas.dumazet
* Changes to dynamic_class_generation_interaction_workflow:
* use resetDynamicDocumentsOnceAtTransactionBoundary so that several changes to portal types during the same transaction are cheaper.
* change trigger to happen after action since it's always queued at end of transaction anyway
* add ERP5TypeInformation._setBaseCategoryList to triggers as well so that accessors are regenerated when base categories are changed.


Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/dynamic_class_generation_interaction_workflow/interactions/BaseType_resetDynamicClasses.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/dynamic_class_generation_interaction_workflow/interactions/ChangeProperty_resetDynamicClasses.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/dynamic_class_generation_interaction_workflow/interactions/PropertySheet_resetDynamicClasses.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/dynamic_class_generation_interaction_workflow/scripts/DynamicClassGeneration_resetDynamicDocuments.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log
    erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/dynamic_class_generation_interaction_workflow/interactions/BaseType_resetDynamicClasses.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/dynamic_class_generation_interaction_workflow/interactions/BaseType_resetDynamicClasses.xml?rev=42861&r1=42860&r2=42861&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/dynamic_class_generation_interaction_workflow/interactions/BaseType_resetDynamicClasses.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/dynamic_class_generation_interaction_workflow/interactions/BaseType_resetDynamicClasses.xml [utf8] Tue Feb  1 04:22:34 2011
@@ -27,15 +27,15 @@
         <item>
             <key> <string>after_script_name</string> </key>
             <value>
-              <tuple/>
+              <list>
+                <string>DynamicClassGeneration_resetDynamicDocuments</string>
+              </list>
             </value>
         </item>
         <item>
             <key> <string>before_commit_script_name</string> </key>
             <value>
-              <list>
-                <string>DynamicClassGeneration_resetDynamicDocuments</string>
-              </list>
+              <tuple/>
             </value>
         </item>
         <item>
@@ -56,10 +56,11 @@
             <key> <string>method_id</string> </key>
             <value>
               <list>
-                <string>_setTypeClass.*</string>
+                <string>_setTypeClass</string>
                 <string>_setTypeMixin.*</string>
                 <string>_setTypeInterface.*</string>
                 <string>_setTypePropertySheet.*</string>
+                <string>_setBaseCategory.*</string>
               </list>
             </value>
         </item>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/dynamic_class_generation_interaction_workflow/interactions/ChangeProperty_resetDynamicClasses.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/dynamic_class_generation_interaction_workflow/interactions/ChangeProperty_resetDynamicClasses.xml?rev=42861&r1=42860&r2=42861&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/dynamic_class_generation_interaction_workflow/interactions/ChangeProperty_resetDynamicClasses.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/dynamic_class_generation_interaction_workflow/interactions/ChangeProperty_resetDynamicClasses.xml [utf8] Tue Feb  1 04:22:34 2011
@@ -27,15 +27,15 @@
         <item>
             <key> <string>after_script_name</string> </key>
             <value>
-              <tuple/>
+              <list>
+                <string>DynamicClassGeneration_resetDynamicDocuments</string>
+              </list>
             </value>
         </item>
         <item>
             <key> <string>before_commit_script_name</string> </key>
             <value>
-              <list>
-                <string>DynamicClassGeneration_resetDynamicDocuments</string>
-              </list>
+              <tuple/>
             </value>
         </item>
         <item>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/dynamic_class_generation_interaction_workflow/interactions/PropertySheet_resetDynamicClasses.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/dynamic_class_generation_interaction_workflow/interactions/PropertySheet_resetDynamicClasses.xml?rev=42861&r1=42860&r2=42861&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/dynamic_class_generation_interaction_workflow/interactions/PropertySheet_resetDynamicClasses.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/dynamic_class_generation_interaction_workflow/interactions/PropertySheet_resetDynamicClasses.xml [utf8] Tue Feb  1 04:22:34 2011
@@ -27,15 +27,15 @@
         <item>
             <key> <string>after_script_name</string> </key>
             <value>
-              <tuple/>
+              <list>
+                <string>DynamicClassGeneration_resetDynamicDocuments</string>
+              </list>
             </value>
         </item>
         <item>
             <key> <string>before_commit_script_name</string> </key>
             <value>
-              <list>
-                <string>DynamicClassGeneration_resetDynamicDocuments</string>
-              </list>
+              <tuple/>
             </value>
         </item>
         <item>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/dynamic_class_generation_interaction_workflow/scripts/DynamicClassGeneration_resetDynamicDocuments.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/dynamic_class_generation_interaction_workflow/scripts/DynamicClassGeneration_resetDynamicDocuments.xml?rev=42861&r1=42860&r2=42861&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/dynamic_class_generation_interaction_workflow/scripts/DynamicClassGeneration_resetDynamicDocuments.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/dynamic_class_generation_interaction_workflow/scripts/DynamicClassGeneration_resetDynamicDocuments.xml [utf8] Tue Feb  1 04:22:34 2011
@@ -50,7 +50,7 @@
         </item>
         <item>
             <key> <string>_body</string> </key>
-            <value> <string>getattr(state_change[\'object\'].getPortalObject().portal_types, \'Types Tool\').resetDynamicDocuments()\n
+            <value> <string>state_change[\'object\'].getPortalObject().portal_types.resetDynamicDocumentsOnceAtTransactionBoundary()\n
 </string> </value>
         </item>
         <item>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log?rev=42861&r1=42860&r2=42861&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log [utf8] Tue Feb  1 04:22:34 2011
@@ -1,3 +1,9 @@
+2011-02-01 nicolas.dumazet
+* Changes to dynamic_class_generation_interaction_workflow:
+* use resetDynamicDocumentsOnceAtTransactionBoundary so that several changes to portal types during the same transaction are cheaper.
+* change trigger to happen after action since it's always queued at end of transaction anyway
+* add ERP5TypeInformation._setBaseCategoryList to triggers as well so that accessors are regenerated when base categories are changed.
+
 2011-01-28 Kazuhiko
 * support 'Paths of objects whose workflow history should be kept' and 'Paths of objects that should be kept' in Business Template definition.
 * support more 'Removed but ...' and 'Modified but ...' cases in business template installation dialogue.

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=42861&r1=42860&r2=42861&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] Tue Feb  1 04:22:34 2011
@@ -1 +1 @@
-40859
\ No newline at end of file
+40862
\ No newline at end of file



More information about the Erp5-report mailing list