[Zope] How-to develop a folderish product?

Peter Sabaini sabaini@niil.at
Tue, 19 Jun 2001 01:53:36 +0200 (CEST)


Hi!

I put a zip file with that example product at

  http://www.zope.org/Members/sabaini/BasicObjectManager.zip

I even tried and put in some comments...
Those places that arent commented its likely I dont know how or why ;)

have fun,

peter

On Mon, 18 Jun 2001, Steve Drees wrote:

> can you send that to me too?
>
> Or better yet put it up at zope.org as a how-to
>
> > -----Original Message-----
> > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Pe=
ter
> > Sabaini
> > Sent: Sunday, June 17, 2001 12:57 PM
> > To: Rene Pijlman
> > Cc: zope@zope.org
> > Subject: Re: [Zope] How-to develop a folderish product?
> >
> >
> >
> > Its really not that different. I'd suggest looking at the source of
> > in lib/python/OFS/Folder.py. You basically have to make your class
> > inherit from ObjectManager and a bunch of other classes (eg.
> > SimpleItem.Item and FindSupport and webdav classes, if you need it),
> > or you can inherit from OFS.Folder directly (if youre as lazy as I
> > am:)). You then have to tell Zope to include a "folderish" manage tab.
> > You can quite conveniently reuse the one provided by ObjectManager,
> > with:
> >
> >   manage_options=3D( (ObjectManager.ObjectManager.manage_options[0],)=
 +
> >   ... # other mgt. tabs
> >
> >
> > That should be about it. I can send you a commented skeleton folderis=
h
> > Product if its any use to you, just contact me off-list.
> >
> > cheers,
> > peter.
> >
> >
> > On Sun, 17 Jun 2001, Rene Pijlman wrote:
> >
> > > Hello,
> > >
> > > I've just studied the "Python Product Development Tutorial"
> > > (http://www.zope.org/Members/hathawsh/PythonProductTutorial).
> > This shows how
> > > to develop a Python-based product with a non-folderish object.
> > I've managed
> > > to develop mij own non-folderish object this way.
> > >
> > > Now I'd like to learn how to develop a folderish object (again,
> > > Python-based). Can someone please provide some guidance? Is there a
> > > how-to/tutorial for folderish products as well? Or is it not
> > that different?
> > >
> > > A practical question about folderish objects: Should it inherit
> > from Folder
> > > or ObjectManager directly? Should it still inherit from
> > > OFS.SimpleItem.(Simple)Item?
> > >
> > > TIA,
> > > Ren=E9 Pijlman
> >
> >
> > --
> >
> > _________________________________________________
> > peter sabaini, mailto: sabaini@niil.at
> > -------------------------------------------------
> >
> >
> > _______________________________________________
> > 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 )
> >
>

--=20

_________________________________________________
peter sabaini, mailto: sabaini@niil.at
-------------------------------------------------