[Zope3-Users] Content cloning ?
ct at gocept.com
Mon Jan 15 10:36:51 EST 2007
Am Montag, den 15.01.2007, 16:06 +0100 schrieb Thierry Florac:
> In an application I'm currently building with Zope3, I need to be able
> to "clone" several kinds of content data.
> While cloning a simple content class is quite simple, I don't know
> exactly how to clone data provided through adapters, which may store
> these data throught annotations.
> What I was thinking about was something like :
> - create a new interface "IClonable", with a single "clone" method
> - make my specific content interfaces, eventually provided throught
> adapters, extend IClonable
> - get a list of interfaces provided by my content class, directly or
> throught adapters, which extend IClonable, and call their "clone" method
> when cloning is required.
> So, actually, my main problem is :
> - how can I get the list of interfaces provided by a given class,
> directly of throught adapters ?
> - is this conception method the best one in Python/Zope3 to clone
> data ??
> Thanks for any help or advise...
You might want to checkout zc.copy.
gocept gmbh & co. kg - forsterstraße 29 - 06112 halle/saale - germany
www.gocept.com - ct at gocept.com - phone +49 345 122 9889 7 -
fax +49 345 122 9889 1 - zope and plone consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://mail.zope.org/pipermail/zope3-users/attachments/20070115/2d64180f/attachment.bin
More information about the Zope3-users