[Zope] How-to develop a folderish product?

Peter Sabaini sabaini@niil.at
Sun, 17 Jun 2001 19:57:17 +0200 (CEST)


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 folderish
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 show=
s how
> to develop a Python-based product with a non-folderish object. I've man=
aged
> 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 diffe=
rent?
>
> A practical question about folderish objects: Should it inherit from Fo=
lder
> or ObjectManager directly? Should it still inherit from
> OFS.SimpleItem.(Simple)Item?
>
> TIA,
> Ren=E9 Pijlman


--=20

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