[Zope] question
Chris McDonough
chrism@digicool.com
Fri, 28 Apr 2000 23:48:37 -0400
George,
A good example of recursion is in the ZCatalog.py file in any Zope
distribution. There is a method named ZopeFindAndApply that uses
recursion to walk the tree. I wouldn't try this from DTML.
> -----Original Message-----
> From: George Runyan [mailto:grunyan@emerging.com]
> Sent: Friday, April 28, 2000 6:57 PM
> To: zope@zope.org
> Subject: [Zope] question
>
>
> maybe its really late and I'm tired... but I'm sitting here
> trying to walk
> the entiree tree from a dtml method and its just not
> working... I would
> rather do this from pythonmethods, and I've been reading the
> manage_exportObject method to see how it works, but its kinda
> hairy... ?
> how do you do recursion in ZOPE?
>
> I'm trying to essentially do what exporting the DOM in XML
> except w/ more
> control and preferably using pyMethods but I just dont get it... :(
>
> any help? a good idea may be to have a PythonMethod
> repository, it seems
> that I'm always struggling w/ the in's and out's of
> PythonMethods in the
> ZOPE env. and it would be nice for when pyMethods are
> released w/ ZOPE that
> there is a nice wealth of info for people to see examples of
> these beautiful
> and elegant creatures.
>
> many thanks,
> george
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>