allow arbitrary arguments tls-sprint
authorsylvain.thenault@logilab.fr
Wed, 11 Mar 2009 11:34:15 +0100
branchtls-sprint
changeset 1054 434e098f6c76
parent 1053 e4d965b5ca37
child 1055 b87222b63950
allow arbitrary arguments
common/tags.py
--- a/common/tags.py	Wed Mar 11 11:19:23 2009 +0100
+++ b/common/tags.py	Wed Mar 11 11:34:15 2009 +0100
@@ -28,8 +28,7 @@
 h4 = tag('h4')
 h5 = tag('h5')
 
-def select(name, id=None, multiple=False, options=[]):
-    attrs = {}
+def select(name, id=None, multiple=False, options=[], **attrs):
     if multiple:
         attrs['multiple'] = 'multiple'
     if id: