<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.0.10">
</HEAD>
<BODY>
<BR>
Hi,<BR>
<BR>
I have a problem with Zope-2.6.1, which I'll try to describe below...<BR>
I have several classes, in several Python products, with several custom properties :<BR>
<BR>
<PRE> class MyFolder (ObjectManager):
_properties = ({'id':'title', 'type':'string', 'mode':'w'},
{'id':'oid', 'type':'string', 'mode':''},
{'id':'template', 'type':'string', 'mode':'w'})
class MyClass (SimpleItem):
_properties = ({'id':'title', 'type':'string', 'mode':'w'},
{'id':'oid', 'type':'string', 'mode':''},
...)
class MySubClass (MyClass):
_properties = MyClass._properties + \
({'id':'template', 'type':'string', 'mode':'w'},
...)</PRE>
<BR>
Instances of MyClass and MySubClass are stored in instances of MyFolder.<BR>
My problem is that when I cut and paste an instance of MySubClass from/to an instance of MyFolder, it seems that properties added to MySubClass are lost ; and in this example, the MySubClass.template is replaced with the value of MyFolder.template.<BR>
<BR>
The "CopySource._getCopy" method which is used to get a copy of an object while cutting/pasting is never overridden, but I think that my added properties are already missing while calling this method...<BR>
<BR>
Any help or idea will be greatly welcome...<BR>
Thanks,<BR>
<BR>
Thierry<BR>
<BR>
</BODY>
</HTML>