[Gazpacho] Adding Combo box item entries?

Paul Furber paulf at paulfurberconsulting.com
Wed Aug 31 16:10:10 CEST 2005


On Wed, 2005-08-31 at 10:53 -0300, Johan Dahlin wrote:
> I have good news and bad news:
> 
> The bad news is that it's not supported in 0.6.1
> The good news is that I just added support for it, but you'd
> have to use the latest svn (r1733 at least) or wait for the next version.

svn update
U  unittest/test_loader.py
U  widgets/base/combobox.py
Updated to revision 1733.

And it works fine! Thanks a lot. Oops, I see adding a Combo Box Entry
now throws an exception with the new code though:

File /usr/lib/python2.4/site-packages/gazpacho/application.py, line 931,
in _project_selection_changed_cb
    self._editor.display(Widget.from_widget(children[0]))
  File /usr/lib/python2.4/site-packages/gazpacho/editor.py, line 952, in
display
    self._load_widget(widget)
  File /usr/lib/python2.4/site-packages/gazpacho/editor.py, line 932, in
_load_widget
    widget_property.load(widget)
  File /usr/lib/python2.4/site-packages/gazpacho/editor.py, line 250, in
load
    self._start_load(widget)
  File /usr/lib/python2.4/site-packages/gazpacho/editor.py, line 96, in
_start_load
    self.property = widget.get_prop(self.property_class.name)
  File /usr/lib/python2.4/site-packages/gazpacho/widget.py, line 823, in
get_prop
    prop = self._create_prop(prop_name)
  File /usr/lib/python2.4/site-packages/gazpacho/widget.py, line 816, in
_create_prop
    return prop_type(self)

File /usr/lib/python2.4/site-packages/gazpacho/widgets/base/combobox.py,
line 56, in __init__
    super(Items, self).__init__(widget)
  File /usr/lib/python2.4/site-packages/gazpacho/properties.py, line
409, in __init__
    self.load()

File /usr/lib/python2.4/site-packages/gazpacho/widgets/base/combobox.py,
line 60, in load
    self._value = '\n'.join([row[0] for row in model])
TypeError: iteration over non-sequence

I did do a clean --all before rebuilding.
-- 
We live entirely, especially if we are writers, by the imposition of a
narrative line upon disparate images, by the 'ideas' with which we have
learned to freeze the shifting phantasmagoria which is our actual
experience - Joan Didion



More information about the Gazpacho mailing list