[Zope] Arrggh, more namespace confusion ...

Loren Stafford lstaffor@dynalogic.com
Sun, 13 Feb 2000 17:59:41 -0800


I would look into the possibility that dtml-with is getting a string when it
wants a reference .

If that's the case, there must be a method that does the conversion, but I
don't know right off what that would be.

-- HTH
-- Loren

----- Original Message -----
From: Darran Edmundson <Darran.Edmundson@anu.edu.au>
To: zope <zope@zope.org>
Sent: February 13, 2000 05:01 PM
Subject: [Zope] Arrggh, more namespace confusion ...


> I'm on the tail-end of another 48-hour Zoping marathon but
> just when I can see the proverbial light - click().  Arggh.
> I've pared my current problem down to:
>
> root
>   spam (DTML method)
>   folder1
>   folder2
>
> where spam contains:
>
> <dtml-var "REQUEST.set('mylist', ['folder1','folder2'])">
> <dtml-in mylist>
>    <dtml-with sequence-item><dtml-var id></dtml-with>
> </dtml-in>
>
> My aim is to loop over mylist pushing sequence-item onto
> the namespace stack, ie,
>
>   <dtml-with folder1><dtml-var id></dtml-with>
>   <dtml-with folder2><dtml-var id></dtml-with>
>
> I've toyed with every version of the <dtml-with> tag I
> can imagine but to no avail.  Can someone please explain
> the source of my confusion.
>
> Cheers,
> Darran.
>
>
>
> _______________________________________________
> 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 )
>
>