[Zope] Iterating descendants of base Z Class, how?
Alexander Staubo
alex@mop.no
Wed, 9 Jun 1999 20:49:10 +0200
Not really, because the same is accomplished (albeit surely less
efficiently) using the syntax I cite below, but thanks for the
suggestion -- I didn't realize objectValues() could accept a sequence.
Maybe objectValues() should be augmented with a second parameter:
acceptDescendants, default value 0. So,
<!--#in "objectValues(['Project'], 1)"-->
...
would give project instances and any descendant instances of the Project
class. How about it?
--
Alexander Staubo http://www.mop.no/~alex/
"`Ford, you're turning into a penguin. Stop it.'"
--Douglas Adams, _The Hitchhiker's Guide to the Galaxy_
>-----Original Message-----
>From: Brian Lloyd [mailto:Brian@digicool.com]
>Sent: 9. juni 1999 20:45
>To: 'Alexander Staubo'; Zope Mailing List (E-mail)
>Subject: RE: [Zope] Iterating descendants of base Z Class, how?
>
>
>> Oh yeah, and I can do
>>
>> <!--#in "objectValues('Project') + objectValues('WebProject')"-->
>>
>> but while this is cool (it's what I'm using now), it's still pretty
>> inflexible.
>>
>> --
>> Alexander Staubo
>
>Note that the objectValues method will accept a sequence:
>
><!--#in "objectValues(['Project','Web Project'])"-->
>...
><!--#/in-->
>
>does that help at all?
>
>
>Brian Lloyd brian@digicool.com
>Software Engineer 540.371.6909
>Digital Creations http://www.digicool.com
>