Commit e345aaa3 authored by Nicolas Dumazet's avatar Nicolas Dumazet

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.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42861 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 053ca4ac
...@@ -27,15 +27,15 @@ ...@@ -27,15 +27,15 @@
<item> <item>
<key> <string>after_script_name</string> </key> <key> <string>after_script_name</string> </key>
<value> <value>
<tuple/> <list>
<string>DynamicClassGeneration_resetDynamicDocuments</string>
</list>
</value> </value>
</item> </item>
<item> <item>
<key> <string>before_commit_script_name</string> </key> <key> <string>before_commit_script_name</string> </key>
<value> <value>
<list> <tuple/>
<string>DynamicClassGeneration_resetDynamicDocuments</string>
</list>
</value> </value>
</item> </item>
<item> <item>
...@@ -56,10 +56,11 @@ ...@@ -56,10 +56,11 @@
<key> <string>method_id</string> </key> <key> <string>method_id</string> </key>
<value> <value>
<list> <list>
<string>_setTypeClass.*</string> <string>_setTypeClass</string>
<string>_setTypeMixin.*</string> <string>_setTypeMixin.*</string>
<string>_setTypeInterface.*</string> <string>_setTypeInterface.*</string>
<string>_setTypePropertySheet.*</string> <string>_setTypePropertySheet.*</string>
<string>_setBaseCategory.*</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -27,15 +27,15 @@ ...@@ -27,15 +27,15 @@
<item> <item>
<key> <string>after_script_name</string> </key> <key> <string>after_script_name</string> </key>
<value> <value>
<tuple/> <list>
<string>DynamicClassGeneration_resetDynamicDocuments</string>
</list>
</value> </value>
</item> </item>
<item> <item>
<key> <string>before_commit_script_name</string> </key> <key> <string>before_commit_script_name</string> </key>
<value> <value>
<list> <tuple/>
<string>DynamicClassGeneration_resetDynamicDocuments</string>
</list>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -27,15 +27,15 @@ ...@@ -27,15 +27,15 @@
<item> <item>
<key> <string>after_script_name</string> </key> <key> <string>after_script_name</string> </key>
<value> <value>
<tuple/> <list>
<string>DynamicClassGeneration_resetDynamicDocuments</string>
</list>
</value> </value>
</item> </item>
<item> <item>
<key> <string>before_commit_script_name</string> </key> <key> <string>before_commit_script_name</string> </key>
<value> <value>
<list> <tuple/>
<string>DynamicClassGeneration_resetDynamicDocuments</string>
</list>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <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> </string> </value>
</item> </item>
<item> <item>
......
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 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 '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. * support more 'Removed but ...' and 'Modified but ...' cases in business template installation dialogue.
......
40859 40862
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment