This should be easy, but I can't seem to make it work. With this statement: <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?!?! It seems like something REALLY simple, but I just can't get that thing to render right. Thanks, Rick
On Tue, Dec 11, 2001 at 09:59:27AM -0800, D. Rick Anderson wrote:
This should be easy, but I can't seem to make it work. With this statement:
<dtml-var "webClient('http://192.168.107.8/SQL_Testing/Database_Test? clt_id=&dtml-clt_id;')">
You could try: _.getitem('clt_id') hth Chris
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?!?! It seems like something REALLY simple, but I just can't get that thing to render right.
Thanks,
Rick
_______________________________________________ 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 )
On 11/12/01 5:59 pm, "D. Rick Anderson" <ruger@comnett.net> wrote:
This should be easy, but I can't seem to make it work. With this statement:
<dtml-var "webClient('http://192.168.107.8/SQL_Testing/Database_Test? clt_id=&dtml-clt_id;')">
How about <dtml-var "webClient('http://192.168.107.8/SQL_Testing/Database_Test?clt_id=%s' % clt_id)"> When you're in " ... ", you're in python land and I don't think that the &dtml-xxx; syntax is supported there. I use this when I'm doing things like; <dtml-call "RESPONSE.redirect('/redirector/%s/index_html' % myfolder)">
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?!?! It seems like something REALLY simple, but I just can't get that thing to render right.
Not *that* simple :)
Thanks,
Rick
_______________________________________________ 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 )
-- Dr Tony McDonald, Assistant Director, FMCC, http://www.fmcc.org.uk/ The Medical School, Newcastle University Tel: +44 191 243 6140 A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope
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. :-)
participants (4)
-
Chris Meyers -
D. Rick Anderson -
Lennart Regebro -
Tony McDonald