[Zope-dev] Python products

2001-02-07 Thread Tom Deprez
Hi, I'm wondering, is there somewhere a simple example on how to create a python product which behaves like the following ZClasses : A simple zclass which contains some data (this is easy with the existing examples) A folder-like zclass which only allows to contain the simple zclass. (easy?) A

Re: [Zope-dev] Python products

2001-02-07 Thread Jens Quade
Chris Withers [EMAIL PROTECTED] writes: You may have to do somethign funky if you want to limit the types of object that subclasses of ZClass: ObjectManager have a "Subobjects" tab to limit the allowed meta types of the subobjects. Not all Folder features, but often less is more :) jens

Re: [Zope-dev] Python products

2001-02-07 Thread Andy McKay
Take a look at FSPoll which has sort of structure... You may have to do somethign funky if you want to limit the types of object that appear in the 'Add' list of your new classes. I have no idea how to do that :-S I did that in FSPoll just last night. Basically overrode filtered_meta_types,

Re: [Zope-dev] Python products

2001-02-07 Thread Andy McKay
anywhere except in an FSPoll Folder. So how do I limit that? -- Andy McKay. - Original Message - From: "Jens Quade" [EMAIL PROTECTED] To: "Tom Deprez" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, February 07, 2001 7:08 AM Subject: Re: [Zope-dev] Pyth

Re: [Zope-dev] Python products

2001-02-07 Thread richard
Andy McKay wrote: Take a look at FSPoll which has sort of structure... You may have to do somethign funky if you want to limit the types of object that appear in the 'Add' list of your new classes. I have no idea how to do that :-S I did that in FSPoll just last night. Basically

Re: [Zope-dev] Python products

2001-02-07 Thread richard
Chris Withers wrote: Tom Deprez wrote: A folder-like zclass which only allows to contain the simple zclass. (easy?) Subclass OFS.Folder or OFS.ObjectManager if you don't want properties and the other extras that Folder has. A folder-like zclass which allows to contain the 2 above