[ZCM] [ZC] 1281/ 5 Comment "Need a way to include non-xml valid structure in ZPT attributes"
"Collector: Zope Bugs, Features, and Patches ..." <[email protected]> Fri, 11 May 2007 12:33:57 -0400
| Newsgroups | gmane.comp.web.zope.devel.collector-monitor |
|---|---|
| Message-ID | <[email protected]> |
Issue #1281 Update (Comment) "Need a way to include non-xml valid structure in ZPT attributes" Status Rejected, Zope/feature medium To followup, visit: http://www.zope.org/Collectors/Zope/1281 ============================================================== = Comment - Entry #5 by ajung on May 11, 2007 12:33 pm Please discuss this issue on the one of the Zope mailinglists if there is still need for such a feature. ________________________________________ = Reject - Entry #4 by ajung on May 11, 2007 12:31 pm Status: Accepted => Rejected ________________________________________ = Assign - Entry #3 by ajung on May 12, 2004 11:21 am Status: Pending => Accepted Supporters added: ajung I think we should add this for Zope 2.8. See also discussion http://mail.zope.org/pipermail/zpt/2004-April/005259.html ________________________________________ = Comment - Entry #2 by ajung on Apr 17, 2004 11:38 am """ Request: Could there be a modifier to tal:attributes, much like 'structure' when applied to tal:replace that prevents ZPT from escaping or otherwise fixing the data being applied to that attribute? """ This has been discussed in the past and there was no common agreement to add something like that. -aj ________________________________________ = Request - Entry #1 by salimfadhley on Apr 1, 2004 10:01 am Background: Sometimes we need to generate non-standard attributes, which while not being valid XML has some practical value when integrating Zope applications with other systems. I am working on an application part-written in Zope that makes content for a mailing system to re-distribute. The mailing system takes HTML documents with some embedded TCL. I would like to be able to generate all of this using Zope and ZPT - the problem is the embedded TCL requires characters that ZPT will not allow in attributes. Rationale: Some other applications *REQUIRE* HTML-like input formats, despite not being valid XML, it would be great if these with the ZPT I know and love. Example - How I am generating <a> tags: <a href="webTi.html" tal:attributes="href python:here.pyscripts.uri(content_object)">click me</a> Example - an attribute I need to create: <a href="%%track http://zope.hobo.hhub/demo/club_six/section?obj=section&id=6%20-name%20"Resistance%20training"%%">click me</a> Example - What actually happens: <a href="%%track http://zope.hobo.hhub/demo/club_six/section?obj=section&id=6%20-name%20"Resistance%20training"%%"> Explaination: ZPT is smart enough to know that an attribute should never contain a " (quote-mark) character, so it has tried to escape it to preserve sanity... however in this case it has done the wrong thing, I actually wanted the EXACT output of the function - no matter how bizzare it looks. Request: Could there be a modifier to tal:attributes, much like 'structure' when applied to tal:replace that prevents ZPT from escaping or otherwise fixing the data being applied to that attribute? ==============================================================