[Erp5-report] r34365 luke - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: WorkflowTempl...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Apr 8 11:32:24 CEST 2010


Author: luke
Date: Thu Apr  8 11:32:20 2010
New Revision: 34365

URL: http://svn.erp5.org?rev=34365&view=rev
Log:
 - do not store comment variable during edit transition
This is related to issue, that comment can be a property of an object. So while
invoking: object.edit(comment='something') property is stored on object but
also is set in comment. Despite the fact that edit is workflow method, its usage
is mostly like normal method.

It is possible to store comment in edit workflow, by using doActionFor(object,
'edit_action', comment='comment to be stored in workflow history'). This can be
done in same transaction and thanks to this it will be related with edit
transition.

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/edit_workflow/transitions/edit.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/edit_workflow/transitions/edit.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/edit_workflow/transitions/edit.xml?rev=34365&r1=34364&r2=34365&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/edit_workflow/transitions/edit.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/edit_workflow/transitions/edit.xml [utf8] Thu Apr  8 11:32:20 2010
@@ -55,6 +55,53 @@
             <key> <string>trigger_type</string> </key>
             <value> <int>2</int> </value>
         </item>
+        <item>
+            <key> <string>var_exprs</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <global name="PersistentMapping" module="Persistence.mapping"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>data</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>comment</string> </key>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+                    </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <tuple>
+        <global name="Expression" module="Products.CMFCore.Expression"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>nothing</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>

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=34365&r1=34364&r2=34365&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] Thu Apr  8 11:32:20 2010
@@ -1,1 +1,1 @@
-1554
+1555




More information about the Erp5-report mailing list