[Zope] simple question
Lennart Regebro
lennart@regebro.nu
Wed, 12 Dec 2001 23:28:48 +0100
From: "D. Rick Anderson" <ruger@comnett.net>
> <dtml-var "webClient('http://192.168.107.8/SQL_Testing/Database_Test?
> clt_id=&dtml-clt_id;')">
>
> I can't get the &dtml-clt_id variable to render. I've tried all sorts of
> variations from leaving out the ; to using the full <dtml-var> syntax and
> it still wont render. When I look at the request that is sent it looks
like
> this:
>
> QUERY_STRING 'clt_id=&dtml-clt_id;'
>
> Why won't this work?!?!
Because you can't use dtml inside an expression. When you are inside
expressions you are in Pythonland. :-)
>It seems like something REALLY simple, but I just can't get that thing to
render right.
It is. Try this:
<dtml-var
"webClient('http://192.168.107.8/SQL_Testing/Database_Test?clt_id='+clt_id)"
>
Have no idea if it woks in your case, but it's worth a try.
Remember: Python is easier than DTML, so don't make things too overly
complicated. :-)