Commit 29b9958f authored by Łukasz Nowak's avatar Łukasz Nowak

- 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.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34365 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ee453b2a
......@@ -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>
......
1554
\ No newline at end of file
1555
\ 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