[ZCM] [ZC] 1631/ 3 Comment "TAL escaping of spaces"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Mon Dec 20 06:49:47 EST 2004
Issue #1631 Update (Comment) "TAL escaping of spaces"
Status Pending, Zope/bug medium
To followup, visit:
http://collector.zope.org/Zope/1631
==============================================================
= Comment - Entry #3 by ajung on Dec 20, 2004 6:49 am
I don't see any quoting on my Zope installation. In both cases the whitespace is either between the two words or at the end.
________________________________________
= Comment - Entry #2 by andyv on Dec 20, 2004 6:38 am
There's a typo in my example - it should of course have been string:test?x=${x}
Our reference for this bug is 1003514
Andrew
________________________________________
= Request - Entry #1 by andyv on Dec 20, 2004 6:33 am
The line:
<a tal:define="x string:one two"
tal:attributes="href test?x=${x}">test</a>
will create a link to x=one%20two as expected. However:
<a tal:define="x string:one "
tal:attributes="href test?x=${x}">test</a>
will generate a link to x=one rather than x=one%20
I can't think of reason why ending spaces should be stripped rather than escaped. Using 'quote' from the urllib library quotes the above string correctly.
==============================================================
More information about the Zope-Collector-Monitor
mailing list