Hi,

Am Montag, den 15.01.2007, 16:06 +0100 schrieb Thierry Florac:
>   Hi,
> 
> 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.

Christian

-- 
gocept gmbh & co. kg - forsterstra├če 29 - 06112 halle/saale - germany
www.gocept.com - [EMAIL PROTECTED] - phone +49 345 122 9889 7 -
fax +49 345 122 9889 1 - zope and plone consulting and development

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to