[Zope] More ZClass Questions.....
J. Cameron Cooper
jccooper at jcameroncooper.com
Fri Sep 26 17:31:40 EDT 2003
> How do I set specifc allowable subobjects for a ZClass? I have
> endusers that shold only be allowed to add certain objects to a
> Folderish type object, but when I subclass OFS:Folder, I get every
> product available as an "Add" choice -not good for easily confused
> endusers.....
>
> Under the "subobjects" tab, I get a multiselection, but due to the
> sort of the list, I cannot limit only to my choices... Any advice on
> how to set specific subobjects and no others?
>
> PS - I looked at OFS:Folder, but I dont see where it defines it's
> allowable subobjects....
This is set in a property called "meta_types" (as distinct from
"meta_type") on ObjectManagers, which includes Folders and their
descendents.
I believe that in ZClasses you can set this as a TTW property.
--jcc
--
"My point and period will be throughly wrought,
Or well or ill, as this day's battle's fought."
More information about the Zope
mailing list