# HG changeset patch # User Adrien Di Mascio # Date 1235075478 -3600 # Node ID 7985b5db22840d604c359cf1729569d3232603eb # Parent 8591d896db7e573b2a61d4a41e6e3a003008cbaa provide a mini HTML select tag constructor diff -r 8591d896db7e -r 7985b5db2284 common/tags.py --- a/common/tags.py Thu Feb 19 20:33:50 2009 +0100 +++ b/common/tags.py Thu Feb 19 21:31:18 2009 +0100 @@ -13,3 +13,10 @@ span = tag('span') img = tag('img') label = tag('label') + +def select(name, options=[]): + html = [u'') + return u'\n'.join(html) +