Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

label_field template need escape param defined

  • Loading branch information...
commit 5e92a00c98477b2f4753f485a70ce36b016bffed 1 parent 3933cd2
Aurélien Matouillot LeResKP authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  tw2/sqla/widgets.py
1  tw2/sqla/widgets.py
View
@@ -244,6 +244,7 @@ class DbLinkField(twc.Widget):
link = twc.Param('Path to link to', default=None)
text = twc.Param('Link text', default='')
entity = twc.Param('SQLAlchemy mapped class to use', request_local=False)
+ escape = twc.Param('Whether text shall be html-escaped or not', default=True)
def encode(self, value):
return urllib.quote(unicode(value).encode('utf-8'))
Please sign in to comment.
Something went wrong with that request. Please try again.