[Zope-dev] Rendering xml content in ZPT

Sidnei da Silva sidnei at awkly.org
Mon Nov 10 12:08:49 EST 2003


On Mon, Nov 10, 2003 at 05:50:46PM +0100, Antonio Beamud Montero wrote:
| Hi all:
| I have problems to rendering data if the ZPT is xml content-type.
| I have include xmlns:tal namespace definition and a replacemente of an
| attribute in the xml text with
|   <loc src="http://localhost" tal:attributes="src here/absolute_url">
| 
| But this replacement is ignored and if I try to view this method,  the
| xml is exactly the same...
| 
| What I need to do to rendering this document appliying changes?

Try python:here.absolute_url(). If that works, then you hit a bug in
the C Security Policy, which has been fixed by Chris McDonough in the
last bugday.

-- 
Sidnei da Silva <sidnei at awkly.org>
http://awkly.org - dreamcatching :: making your dreams come true
http://plone.org/about/team#dreamcatcher

You scratch my tape, and I'll scratch yours.



More information about the Zope-Dev mailing list