Pavlos: A quick look at the source reveals none other that the "possible_meta_types" variable. I am having trouble accessing that from an instance though. The ZClass atb just calls <dtml-in possible_meta_types mapping> But when I cal that from an instance I get: Error Type: KeyError Error Value: possible_meta_types Does anyone know how to access that from an instance? All my best,
On Fri, 17 Mar 2000, Jason Spisak wrote:
Pavlos,
I wasn't quite clear. I'm trying to get 'possible_values'. Right now the only way is to iterate through all the items in a folder and only append the unique ones. That would take a very long time. Is there a way to access the allowables defined by the "Sub Objects" tab of a Zclass?
Oops I am sorry .... I do not know whether there is a magic Zope method to return that. If not then you are right and you will have to iterate over all subobjects, like (tested):
<dtml-call "REQUEST.set('tmp',{})"> <dtml-in objectValues> <dtml-call "REQUEST['tmp'].update({meta_type:''})"> </dtml-in> <dtml-return "REQUEST['tmp'].keys()">
Pavlos
Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.