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:.

How to Use UTF-8 with Python Zope: Get by name

Deja un comentario

Fill in your details below or click an icon to log in:

Logo de WordPress.com

You are commenting using your WordPress.com account. Log Out / Cambiar )

Twitter picture

You are commenting using your Twitter account. Log Out / Cambiar )

Facebook photo

You are commenting using your Facebook account. Log Out / Cambiar )

Connecting to %s

Trackback este articulo  |  Suscríbete a los comentarios vía RSS Feed


Calendario

agosto 2010
L M X J V S D
« jul    
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Mensajes recientes


Seguir

Get every new post delivered to your Inbox.