[Zope3-Users] Copying Objects from/in the ZODB

2008-07-27 Thread Tim Cook
Hi All,

Another basic question but I can't seem to find the easy way to do this.


I have a group of instances stored in the ZODB.  They are basically
skeletons that I want to copy, edit and store as new instances elsewhere
in the ZODB.  In Zope2.x this was fairly obvious to me.  Using the ZCA
it isn't so obvious.  Is there a class I should be inheriting from to do
this or do I need to provide a copy method in the class itself?  

If the later; are there any good examples?

Thanks,
Tim




-- 
**
Join the OSHIP project.  It is the standards based, open source
healthcare application platform in Python.
Home page: https://launchpad.net/oship/ 
Wiki: http://www.openehr.org/wiki/display/dev/Python+developer%27s+page 
**


signature.asc
Description: This is a digitally signed message part
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Copying Objects from/in the ZODB

2008-07-27 Thread Thierry Florac
Le dimanche 27 juillet 2008 à 15:15 -0300, Tim Cook a écrit :
> Hi All,
> 
> Another basic question but I can't seem to find the easy way to do this.
> 
> 
> I have a group of instances stored in the ZODB.  They are basically
> skeletons that I want to copy, edit and store as new instances elsewhere
> in the ZODB.  In Zope2.x this was fairly obvious to me.  Using the ZCA
> it isn't so obvious.  Is there a class I should be inheriting from to do
> this or do I need to provide a copy method in the class itself?  
> 
> If the later; are there any good examples?


Hi,

Have a look at "zope.copypastemove" package interfaces and classes ;
they should provide the simple functions you are looking for...

  Thierry



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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