[ZPT] quoting in tal:attributes - adapters/prefixes stuff?
fergal at esatclear.ie
fergal at esatclear.ie
Tue Oct 7 07:47:38 EDT 2003
The problem with using prefixes to do this is that the prefixes which do
less or even no quoting would have to somehow mark the string as "already
escaped, don't try to escape again". Even if you find a good way of
signalling this, it means that for every string you output you are going to
have to check for this flag.
Of course if you had the suggested prefixes _and_ a "noescape" flag you
could do
<tag tal:attributes="noescape attr some/value/escape:url">
and you would have no overhead for the common case,
F
Original Message:
-----------------
From: Chris Withers chrisw at nipltd.com
Jamie Heilman wrote:
> For the record, I am. Adding a mode whereby substrings that appear to
> be well-formed entities are allowed to forgo the usual quoting in the
> context of an attribute value, is too dangerous and should not be
> present in the Zope framework whatsoever.
Jamie, we're well aware of your judgements about what is "too dangerous" ;-)
I'd like to see both options available.
Hmm, in fact, I'd like to see "no quoting", "url quoting" and "html
quoting"
available.
This all strikes me as stuff that should be handled by Evan/Shane's
prefix/adapter stuff, how can we make that solve this problem?
What stage is that stuff at now?
Chris
_______________________________________________
ZPT mailing list
ZPT at zope.org
http://mail.zope.org/mailman/listinfo/zpt
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
More information about the ZPT
mailing list