[Zope] How Do I "Structure" This?

Chris Withers chris at simplistix.co.uk
Wed Aug 15 11:05:13 EDT 2007


Ah Tony,

looks like the penny is yet to drop...

tonylabarbara at aol.com wrote:
> Bummer. Well, I'm trying to call a script that will render content to the Web, like this:
> <a tal:attributes="href python:here.a_script(str(x))">

My guess is that what you're _really_ trying to do here is:

<a href=""
  tal:attributes="href string:${here/a_script/absolute_url}?avar=${x}"/>

...but next you'll be wondering how to url quote x.

I feel we're fighting a loosing battle here...

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope mailing list