[Zope] with a variable

Steve Spicklemire steve@spvi.com
Thu, 11 Jan 2001 22:33:27 -0500 (EST)


How about this:

<dtml-call "REQUEST.set('userid', 979226100)">
<dtml-with "_[userid]">
<dtml-var attribute>
</dtml-with>

or

<dtml-call "REQUEST.set('userid', 979226100)">
<dtml-with "_.getitem(userid)">
<dtml-var attribute>
</dtml-with>

-steve

> 
> Hi,
> 
> a small problem!,
> 
> This works:
> <dtml-with 979226100>
> <dtml-var attribute>
> </dtml-with>
> 
> This doesn't:
> <dtml-call "REQUEST.set('userid', 979226100)">
> <dtml-with "_.getitem('userid')">
> <dtml-var attribute>
> </dtml-with>
> 
> Nor this:
> <dtml-call "REQUEST.set('userid', 979226100)">
> <dtml-with "userid">
> <dtml-var attribute>
> </dtml-with>
> 
> Nor this:
> <dtml-call "REQUEST.set('userid', 979226100)">
> <dtml-with userid>
> <dtml-var attribute>
> </dtml-with>
> 
> What I want to do is have a varible passed to the page which says what
> zclass instance to get the properties of.
> 
> any help appreciated.
> 
> josh on
> 
> 
> ===========================
> write: josh@futurefarmers.com
> read: www.futurefarmers.com
> read: www.crd.rca.ac.co.uk/~josh
> interrupt (i love it): (415) 552 2124
> =============================
> 
> 
> _______________________________________________
> 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 )
>