[Zope] (n00b question) Passing variables to dtml methods

Matt Gregory matthew.gregory@skyleach.com
Tue, 19 Feb 2002 09:58:23 -0500


Thanks, but I found that I had really asked the wrong question...
If I am in namespace x and I need a variable from namespace z in the form of
x
|_y
   |_z
How do I access z from a method called from x?
I know (now) that I can do this by nested dtml-with calls but that is really
messy.
<dtml-with y>
<dtml-with z>
    <dtml-var my_z_var>
    <dtml-call my_x_method_needs_my_z_var>
</dtml-with>
</dtml-with>

Is there a less painful way of being able to access z namespace variables
without nesting 200 dtml with calls?

----- Original Message -----
From: "Andreas Jung" <andreas@zope.com>
To: "Matt Gregory" <matthew.gregory@skyleach.com>
Cc: <zope@zope.org>
Sent: Tuesday, February 19, 2002 9:28 AM
Subject: Re: [Zope] (n00b question) Passing variables to dtml methods


> see http://lists.zope.org/pipermail/zope-dev/2001-January/009086.html
>
>  - aj
> ----- Original Message -----
> From: "Matt Gregory" <matthew.gregory@skyleach.com>
> To: "Zope" <zope@zope.org>
> Sent: Tuesday, February 19, 2002 09:26
> Subject: [Zope] (n00b question) Passing variables to dtml methods
>
>
> > How do you pass variables to DTML methods?
> > I attempted to enclose in a dtml-let block but that had no effect.
> >
> >
> > _______________________________________________
> > 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 )
> >
>
>
> _______________________________________________
> 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 )
>