[Zope] extended zope functionality (copy, paste, import)

ed colmar ecolmar@qwest.net
Mon, 27 Aug 2001 09:07:28 -0600


Thanks for the reply Phil.

All of my classes are python (modeled after an older squishdot).  Can I
inherit from a class that supports this? Most of my objects either inherit
from folder, or simple item.

-ed-


----- Original Message -----
From: "Phil Harris" <phil.harris@zope.co.uk>
To: "ed colmar" <ecolmar@qwest.net>; <zope@zope.org>
Sent: Sunday, August 26, 2001 10:28 AM
Subject: Re: [Zope] extended zope functionality (copy, paste, import)


> ed,
>
> I find the easiest way to use the cut/copy/paste stuff in Zope is to use
> some session manager with it.
>
> For example:
>
> <dtml-call "ses.set('cb_data',manage_copyObjects(['index_html'])">
>
> or
>
> <dtml-call "ses.set('cb_data',manage_cutObjects(['index_html'])">
>
>
> would set the cb_data variable in the currecnt user-session, this assumes
> you're using the CoreSession stuff from ZC.
>
> Then to paste at a later date:
>
> <dtml-call "manage_pasteObjects(cb_data)">
>
> It's really that simple.
>
> If you do it this way then all the advantage of the Zope cut/copy/paste
> system is kept,
>
> The only thing I'm not 100% sure of (cos I can't remember), is the exact
> name of the methods, I'm pretty sure though.
>
> hth
>
> Phil
>
> ----- Original Message -----
> From: "ed colmar" <ecolmar@qwest.net>
> To: <zope@zope.org>
> Sent: Sunday, August 26, 2001 5:20 PM
> Subject: [Zope] extended zope functionality (copy, paste, import)
>
>
> > Hey again!
> >
> >     I'm moving on to try and fix some of the weirdnesses with my
StarRave
> > code...  One main thing I'd like to do is to support zope's copy/paste
and
> > import/export features.
> >
> >     What are the tricks to doing this?  Are there any existing products
> that
> > I can meditate on that may clue me in?
> >
> >     Thanks!
> >
> >     -ed-
> >
> >
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
>
>