[Erp5-report] r19283 - in /erp5/trunk/bt5/erp5_project: SkinTemplateItem/portal_skins/erp5_...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 12 17:30:48 CET 2008
Author: kazuhiko
Date: Tue Feb 12 17:30:47 2008
New Revision: 19283
URL: http://svn.erp5.org?rev=19283&view=rev
Log:
2007-02-12 kazuhiko
* use related_simulation_movement_path_list to reduce activity dependencies.
Added:
erp5/trunk/bt5/erp5_project/bt/template_catalog_scriptable_key_list
Modified:
erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/TaskReport_copyOrderPropertiesAndNotifyAssignee.xml
erp5/trunk/bt5/erp5_project/bt/change_log
erp5/trunk/bt5/erp5_project/bt/revision
Modified: erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/TaskReport_copyOrderPropertiesAndNotifyAssignee.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/TaskReport_copyOrderPropertiesAndNotifyAssignee.xml?rev=19283&r1=19282&r2=19283&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/TaskReport_copyOrderPropertiesAndNotifyAssignee.xml (original)
+++ erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/TaskReport_copyOrderPropertiesAndNotifyAssignee.xml Tue Feb 12 17:30:47 2008
@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
- <tuple>
- <string>Products.PythonScripts.PythonScript</string>
- <string>PythonScript</string>
- </tuple>
- <none/>
+ <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+ <tuple/>
</tuple>
</pickle>
<pickle>
@@ -68,7 +65,10 @@
</item>
<item>
<key> <string>_body</string> </key>
- <value> <string>packing_list = context\n
+ <value> <string>if related_simulation_movement_path_list is None:\n
+ raise RuntimeError, \'related_simulation_movement_path_list is missing. Update ERP5 Product.\'\n
+\n
+packing_list = context\n
\n
# First, copy Order properties\n
packing_list.PackingList_copyOrderProperties()\n
@@ -125,16 +125,17 @@
email.activate().send(from_url = from_email, subject="New Task Assigned to You", msg = msg)\n
\n
# Then, modify state\n
-activity = packing_list.activate(\n
- after_method_id=[\'immediateReindexObject\',\n
- \'recursiveImmediateReindexObject\'])\n
-activity.Delivery_confirm()\n
+confirm_tag = \'%s_confirm\' % packing_list.getPath()\n
+packing_list.activate(after_path_and_method_id=(related_simulation_movement_path_list,\n
+ (\'immediateReindexObject\',\'recursiveImmediateReindexObject\')),\n
+ tag=confirm_tag).Delivery_confirm()\n
\n
# First set the packing_list in the building state\n
packing_list.startBuilding()\n
# Then an activity should put the causality state in diverged or solved\n
-# XXX after_method_id is not good, it should be after_group_id, but not yet implemented\n
-packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImmediateReindexObject\',\'Delivery_confirm\')).updateCausalityState()\n
+packing_list.activate(after_path_and_method_id=(related_simulation_movement_path_list,\n
+ (\'immediateReindexObject\',\'recursiveImmediateReindexObject\')),\n
+ after_tag=confirm_tag).updateCausalityState()\n
</string> </value>
</item>
<item>
@@ -151,7 +152,7 @@
</item>
<item>
<key> <string>_params</string> </key>
- <value> <string></string> </value>
+ <value> <string>related_simulation_movement_path_list=None</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
@@ -171,24 +172,26 @@
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
- <value> <int>0</int> </value>
+ <value> <int>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
+ <string>related_simulation_movement_path_list</string>
+ <string>None</string>
+ <string>RuntimeError</string>
<string>context</string>
<string>packing_list</string>
<string>_getattr_</string>
<string>related_order</string>
<string>source_person</string>
<string>destination_decision_person</string>
- <string>None</string>
<string>from_email</string>
<string>getattr</string>
<string>email</string>
<string>msg</string>
- <string>activity</string>
+ <string>confirm_tag</string>
</tuple>
</value>
</item>
@@ -200,7 +203,9 @@
<item>
<key> <string>func_defaults</string> </key>
<value>
- <none/>
+ <tuple>
+ <none/>
+ </tuple>
</value>
</item>
<item>
Modified: erp5/trunk/bt5/erp5_project/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_project/bt/change_log?rev=19283&r1=19282&r2=19283&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_project/bt/change_log (original)
+++ erp5/trunk/bt5/erp5_project/bt/change_log Tue Feb 12 17:30:47 2008
@@ -1,3 +1,6 @@
+2007-02-12 kazuhiko
+* use related_simulation_movement_path_list to reduce activity dependencies.
+
2007-12-13 yo
* Since Requirement Document is not associated with any workflow to manage security, it didn't make sense not to acquire local roles.
* Remove start_date and stop_date from task_report_causality_workflow.
Modified: erp5/trunk/bt5/erp5_project/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_project/bt/revision?rev=19283&r1=19282&r2=19283&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_project/bt/revision (original)
+++ erp5/trunk/bt5/erp5_project/bt/revision Tue Feb 12 17:30:47 2008
@@ -1,1 +1,1 @@
-389
+390
Added: erp5/trunk/bt5/erp5_project/bt/template_catalog_scriptable_key_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_project/bt/template_catalog_scriptable_key_list?rev=19283&view=auto
==============================================================================
(empty)
More information about the Erp5-report
mailing list