common/uilib.py
branchtls-sprint
changeset 980 59552ba2015f
parent 862 ee560986e211
child 985 6a25c58a1c23
--- a/common/uilib.py	Tue Feb 24 17:20:04 2009 +0100
+++ b/common/uilib.py	Fri Feb 27 16:16:33 2009 +0100
@@ -209,6 +209,10 @@
     """
     value = u'<%s' % tag
     if attrs:
+        try:
+            attrs['class'] = attrs.pop('klass')
+        except KeyError:
+            pass
         value += u' ' + u' '.join(u'%s="%s"' % (attr, html_escape(unicode(value)))
                                   for attr, value in attrs.items()
                                   if value is not None)