Use url_quote_plus inside tal
agosto 3, 2010 at 1:02 am Deja un comentario
Use url_quote_plus inside tal:
First, define:
<tal:imports tal:define="url_quote_pluspython:modules['Products.PythonScripts.standard'].url_quote_plus;">
<!–and here, use–>
<a href="." tal:attributes="hrefpython:url_quote_plus(myVar)">link</a>
</tal:imports>
And the same works for all other string functions
Advertisement
Entrada archivada en:Uncategorized. Etiquetas:.
Trackback este articulo | Suscríbete a los comentarios vía RSS Feed