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 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -53,7 +50,11 @@
</item>
<item>
<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>
</item>
<item>
......@@ -92,6 +93,9 @@
<tuple>
<string>_getattr_</string>
<string>context</string>
<string>title</string>
<string>content</string>
<string>type</string>
<string>None</string>
</tuple>
</value>
......
491
\ No newline at end of file
490
\ 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