Commit 38529a0b authored by Aurel's avatar Aurel

copy properties which are guessed from data so that we do not loose...

copy properties which are guessed from data so that we do not loose information when cloning an event

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39133 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f58200bf
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -53,7 +50,11 @@ ...@@ -53,7 +50,11 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>context.setData(None)\n <value> <string># We must copy these properties as they are retrieved from data\n
title = context.getTitle()\n
content = context.getTextContent()\n
type = context.getContentType()\n
context.edit(title=title, text_content=content, content_type=type, data=None)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -92,6 +93,9 @@ ...@@ -92,6 +93,9 @@
<tuple> <tuple>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>title</string>
<string>content</string>
<string>type</string>
<string>None</string> <string>None</string>
</tuple> </tuple>
</value> </value>
......
491 490
\ 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