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
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
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,
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
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
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