[Zope] How Do I "Structure" This?

Chris Withers chris at simplistix.co.uk
Wed Aug 15 12:53:13 EDT 2007

tonylabarbara at aol.com wrote:
> I tried this:
> <a tal:attributes="href string:${here/a_script}?doc=${x}">
> but got this error:
> Error Type: TypeError
> Error Value: a_script() takes exactly 1 argument (0 given)

Yeah, as you discovered later, leaving bits of things people suggest off 
is stupid ;-)

> So it doesn't look like the "string:${..." workaround worked :(

It's not a workaround. There's nothing to workaround.

> And I don't think I need to URLquote.

Oh? And what happens when x contains non-url-safe characters like 
spaces, slashes, colons, etc?



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

More information about the Zope mailing list