[Zope] urlencode in ZPT - newbie question

Dieter Maurer dieter@handshake.de
Sat, 31 May 2003 11:23:48 +0200


Dominic Hiles wrote at 2003-5-30 16:00 +0100:
 > ...
 > <--- snip --->
 > <a href="id" tal:attributes="href python:urlencode(item.getId())">
 > <!--- snip --->

Try:
	...
	tal:define="
	  std	modules/Products.PythonScripts.standard;
	  url_quote	nocall: std/url_quote;
	  "
	tal:attributes="
	  href python:url_quote(item.getId());
	  "
	...

"standard" contains more helpful definitions....


Dieter