web/formwidgets.py
branchtls-sprint
changeset 1273 64e1db70161b
parent 1152 c99ef2a2535c
child 1294 870bc725cc9a
--- a/web/formwidgets.py	Tue Apr 07 19:53:03 2009 +0200
+++ b/web/formwidgets.py	Tue Apr 07 19:53:24 2009 +0200
@@ -43,7 +43,7 @@
         attrs = dict(self.attrs)
         if self.setdomid:
             attrs['id'] = form.context[field]['id']
-        if self.settabindex:
+        if self.settabindex and not 'tabindex' in attrs:
             attrs['tabindex'] = form.req.next_tabindex()
         return name, values, attrs
 
@@ -226,5 +226,3 @@
         self.add_media(form)
         attrs = self._render_attrs(form, field)[-1]
         return tags.div(**attrs)
-
-# XXX backport PropertyKeyWidget and PropertyValueWidget