Fix name error introduced in c21d845836e4
c21d845836e4 use a ``vocab`` variable but doesn't define it. I assumed ``vocab`` is
``field.vocabulary(form)``.
--- a/web/formwidgets.py Mon Jun 06 15:00:05 2011 +0200
+++ b/web/formwidgets.py Mon Jun 06 15:00:58 2011 +0200
@@ -445,7 +445,8 @@
curvalues, attrs = self.values_and_attributes(form, field)
options = []
optgroup_opened = False
- for option in field.vocabulary(form):
+ vocab = field.vocabulary(form)
+ for option in vocab:
try:
label, value, oattrs = option
except ValueError: