How-to develop a folderish product?
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é Pijlman
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=( (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 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é Pijlman
-- _________________________________________________ peter sabaini, mailto: sabaini@niil.at -------------------------------------------------
participants (2)
-
Peter Sabaini -
Rene Pijlman