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? Pavlos Christoforou writes:
On Fri, 17 Mar 2000, Jason Spisak wrote:
Zopists,
Is there anyway to create a list of unique meta_types in a folder without knowing them before hand.
I would hate to pack them into a REQUEST variable throught iteration because that would take forever.
Some thing like
<dtml-in possible_types> <dtml-in "objectValues(_['sequence-item'])"> <dtml-var mycode> </dtml-in> </dtml-in>
objectValues can take a list as an argument. Assuming possible_types is a list then :
<dtml-in "objectValues(possible_values)">
should work
Pavlos
I am trying to let the viewer sort the view by meta_type but only have the meta_type they ask for show up. Just like the UniqueValuesfor in the Catalog only for a Folder.
All my best,
-- Jason Spisak 444@hiretechs.com
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
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.