You are not logged in Log in Join
You are here: Home » Collectors » NEW Zope.org (the website) » Need a way to include structure in ZPT attributes » dc_view

Log in
Name

Password

 
 


Dublin Core Elements

The Dublin Core metadata element set is a standard for cross-domain information resource description.
Element Description Value
Identifier resource ID http://old.zope.org/Collectors/ZopeOrg/327
Title resource name Need a way to include structure in ZPT attributes
Description resource summary 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. How I am generating <a> tags: <a href="webTi.html" tal:attributes="href python:here.pyscripts.uri(content_object)">click me</a> Example of 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> What actually happens: <a href=&quot;%%track http://zope.hobo.hhub/demo/club_six/section?obj=section&id=6%20-name%20"Resistance%20training&quot;%%"> 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?
Creator resource creator salimfadhley
Date default date 2004-04-01 09:57:25
Format resource format text/html
Type resource type Collector Issue
Subject resource keywords functionality, bug, medium
Contributors resource collaborators
Language resource language
Publisher resource publisher No publisher
Rights resource copyright


Additional Zope Elements

Element Description Value
CreationDate date resource created 2004-04-01 09:55:25
ModificationDate date resource last modified 2004-04-01 09:57:25
EffectiveDate date resource becomes effective None
ExpirationDate date resource expires None

Backlinks: via Google / Technorati