[Schevo-devel] SchevoGtk tabularasa traceback

Patrick K. O'Brien pobrien at orbtech.com
Fri May 5 08:22:27 EDT 2006


Matthew Scott wrote:
> Pat,
> 
> Here is the traceback I made mention of yesterday.  This occurs when I
> click on an extent, then double-click on an entity.
> 
<snip>
>
>   File "/Users/gldnspud/s/SchevoGtk-tabularasa/schevo/gtk/field.py",
> line 192, in set_field
>     data_type = field.data_type
> AttributeError: 'Entity' object has no attribute 'data_type'

This is a new field attribute I added in the field-caching branch.  I'm
not using it fully yet so I commented it out.  We can discuss it further
when you review the field-caching branch.

> Here is what happens when I try right-click, then "Create":
> 
<snip>
>
> "/Users/gldnspud/env/test/lib/python2.4/kiwi-1.9.8-py2.4.egg/kiwi/ui/entry.py",
> line 515, in prefill
>     raise KeyError("Tried to insert duplicate value "
> KeyError: "Tried to insert duplicate value u'(unnamed organization)'
> into the entry"

The underlying gtk.ComboBoxEntry expects the displayed string values to
be unique.  It appears that you have more than one entity with the same
__unicode__ value, or there is a bug somewhere in the code that
populated the combo box.  In either case, I haven't figured out the best
way to deal with this uniqueness requirement.

-- 
Patrick K. O'Brien
Orbtech       http://www.orbtech.com
Schevo        http://www.schevo.org
Louie         http://www.pylouie.org




More information about the Schevo-devel mailing list