[Zope] folders recursively

Peter Sabaini sabaini@niil.at
Sat, 31 Mar 2001 00:22:46 +0200 (CEST)


On 29 Mar 2001, Petr Knapek wrote:

> >>>>> On Thu, 29 Mar 2001 16:45:43 +0200 (CEST), Peter Sabaini <sabaini@niil.at> said:
> Hi Peter,
>
>     PS> On 29 Mar 2001, Petr Knapek wrote:
>     >> Hi Zopists,
>     >>
>     >> I would like to call some DTML method on all Folders in my ZODB.
>     >> I think the best way should be recursion but I do not know how to
>     >> do it in DTML.
>     >>
>     >> Please, can you help me, or do you know any HOW-TO etc? I have
>     >> found nothing.

>     PS> maybe
>
>     PS>   http://www.zope.org/Members/sabaini/recursionminihowto

> I have tried it and after watching it I had the same idea. I have
> created DTML method called 'recursion' with this body:
>
> <dtml-in "objectItems(['Folder'])">
>   <dtml-with sequence-item>
>     <dtml-var id>
>     <dtml-var recursion>
>   </dtml-with>
> </dtml-in>

hm, tried this and it works for me.

> But when I call it (on Zope 2.1.6 on Debian Linux), a Zope error is raised.
>
>
>
> Zope Error
>
>           Zope has encountered an error while publishing this resource.
>
>           Error Type: ValueError
>           Error Value: Invalid Header (0): a b c aa
>
>
> Peter, do you know what does it mean.  I have not test it on 2.3.0

are a b c aa the id's of your folders? this looks like zope thinks
this plain text is your http header and takes exception with that(?)

ru
peter.

-- 

_________________________________________________
peter sabaini, mailto: sabaini@niil.at
-------------------------------------------------