[Erp5-report] r39133 aurel - in /erp5/trunk/bt5/erp5_crm: SkinTemplateItem/portal_skins/erp...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Oct 14 14:19:29 CEST 2010
Author: aurel
Date: Thu Oct 14 14:19:25 2010
New Revision: 39133
URL: http://svn.erp5.org?rev=39133&view=rev
Log:
copy properties which are guessed from data so that we do not loose information when cloning an event
Modified:
erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_afterClone.xml
erp5/trunk/bt5/erp5_crm/bt/revision
Modified: erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_afterClone.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_afterClone.xml?rev=39133&r1=39132&r2=39133&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_afterClone.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_afterClone.xml [utf8] Thu Oct 14 14:19:25 2010
@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
- <tuple>
- <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
- <tuple/>
- </tuple>
+ <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</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>
Modified: erp5/trunk/bt5/erp5_crm/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/bt/revision?rev=39133&r1=39132&r2=39133&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_crm/bt/revision [utf8] Thu Oct 14 14:19:25 2010
@@ -1 +1 @@
-491
\ No newline at end of file
+490
\ No newline at end of file
More information about the Erp5-report
mailing list