prevent Traceback in dataforms_widget(search user in jabber.tf-network.de server as example)

This commit is contained in:
Denis Fomin 2011-03-01 14:01:10 +03:00
parent 2adba6d065
commit 086c5ea01f
1 changed files with 5 additions and 4 deletions

View File

@ -193,8 +193,9 @@ class DataFormWidget(gtk.Alignment, object):
for item in self._data_form.iter_records():
iter_ = self.multiplemodel.append()
for field in item.iter_fields():
self.multiplemodel.set_value(iter_, fieldvars.index(field.var),
field.value)
if field.var in fieldvars:
self.multiplemodel.set_value(iter_,
fieldvars.index(field.var), field.value)
# constructing columns...
for field, counter in zip(self._data_form.reported.iter_fields(),