[Zope-dev] zope products and folders

2004-03-09 Thread Stephen Rudd BIOINF
Please excuse me if this subject is off-topic - there seem to be no zope lists
for the syntax of zope products! I am writing a zope product for the
representation of biological data in a user aware context. I have a working
product that satisfies my primary needs - but I would like to improve a little
before releasing. Could someone explain (or point me to resources) how to turn a
product into a folder like object so that I can bind images, DTML or python
scripts directly into the product - I am stumped and cannot find any explanation
for this. I have looked at the code from Squishdot etc - and find that this has
something to do with manage_main - I cannot progress beyond this.

Thanks

Stephen

Dr Stephen Rudd
Turku Centre for Biotechnology
Finland

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] zope products and folders

2004-03-09 Thread John Ziniti
Stephen Rudd BIOINF wrote:
before releasing. Could someone explain (or point me to resources) how to turn a
product into a folder like object so that I can bind images, DTML or python
scripts directly into the product - I am stumped and cannot find any explanation
Your first step will be to have your Folder-like object inherit from
ObjectManager.
from OFS.ObjectManager import ObjectManager
class FolderLike(ObjectManager, Implicit, Item):
 manage_options = (
ObjectManager.manage_options +
Item.manage_options
)
That should get you started.  For more questions like this, I would
post to plain ol' zope list ([EMAIL PROTECTED]).
I lurk that list and have written plenty of Folder-like products,
and I'd be happy to help in any way I can.
JZ

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )