[Zope] with a variable

josh on josh@futurefarmers.com
Fri, 12 Jan 2001 10:04:24 +0100


thanks Steve and Rick,

Unfortunately  both your solutions brought up this error:

Error Type: SystemError
Error Value: bad argument to internal function

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

> > This works:
> > <dtml-with 979226100>
> > <dtml-var attribute>
> > </dtml-with>

I want to get some properties for a zclass instance after being passed its
id in a variable. In these tests I have been defining the varible in the
code, in the final case it will be passed through the url.

Using the id directly as above works fine, it writes the attribute to the
page.

Thanks for any help,

Josh On