OK. I give up. I have searched for the answer to this for far too long. How do I access a single argument from a query string from in a TAL expression? Thanks in such high anticipation that I may soon explode. Dale Strickland-Clark
Andrew Veitch wrote:
How do I access a single argument from a query string from in a TAL expression?
They are in the request - so request/variable_name will get them out.
A
And if you want to manipulate the value of one or several query string arguments use ZTUtils.make_query. Something along these lines: <body tal:define="mq python:modules['ZTUtils'].make_query"> ... <a tal:attributes="href python:request.URL0 + '?' + mq(request.form, start=previous.first)">previous</a> ... success André
The data you are looking for lives inside 'request'. Create a DTML method with the content: <dtml-var REQUEST> View it to see available variables. Then, view it with a query string (i.e. http://localhost/requestdtmlmethod?bob=1&jim=Something%20else) and see how request changes. Then, go back to your TAL and try something like: <span tal:content="request/bob" /> Troy Dale Strickland-Clark wrote:
OK. I give up. I have searched for the answer to this for far too long.
How do I access a single argument from a query string from in a TAL expression?
Thanks in such high anticipation that I may soon explode.
Dale Strickland-Clark
Dale Strickland-Clark said the following on 03/25/04 16:17:
OK. I give up. I have searched for the answer to this for far too long.
How do I access a single argument from a query string from in a TAL expression?
Thanks in such high anticipation that I may soon explode.
<span tal:content="request/single_argument"></span>
Dale Strickland-Clark
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-- Mit freundlichen Grüßen Joachim Schmitz ...................................................................... AixtraWare eK ..Joachim Schmitz ..www.aixtraware.de ..t: +49-2464-8851 Hüsgenstr. 33a .....d-52457 Aldenhoven .............f: +49-2464-905163
participants (5)
-
Andre Meyer -
Andrew Veitch -
Dale Strickland-Clark -
Joachim Schmitz -
Troy Farrell