On Jan 11, 2011, at 2:55 PM, Sibylle Koczian wrote:

> Directory structure for new application created with dabo.quickStart(),
> .cnxml file created in db directory, ClassDesigner started,
> "Add from Data Environment" selected.
> 
> Error message:
> 
> sib@gespenst-xubuntu:~/bin/dabosib/testcd_2$ 
> ~/src/dabo-trunk/ide/ClassDesigner.py
> Traceback (most recent call last):
>   File 
> "/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 
> 14636, in <lambda>
>     lambda event: event.callable(*event.args, **event.kw) )
>   File "/home/sib/src/dabo-trunk/dabo/ui/dDataControlMixinBase.py", 
> line 366, in _delayedSetDataSource
>     self.update()
>   File "/home/sib/src/dabo-trunk/dabo/ui/dDataControlMixinBase.py", 
> line 102, in update
>     self.__dataUpdate()
>   File "/home/sib/src/dabo-trunk/dabo/ui/dDataControlMixinBase.py", 
> line 154, in __dataUpdate
>     self.Value = srcatt
>   File "/home/sib/src/dabo-trunk/dabo/ui/uiwx/dControlItemMixin.py", 
> line 389, in _setValue
>     self.StringValue = value
>   File "/home/sib/src/dabo-trunk/dabo/ui/uiwx/dControlItemMixin.py", 
> line 363, in _setStringValue
>     raise ValueError(_("String must be present in the choices: '%s'") % 
> string)
> ValueError: String must be present in the choices: ''
> 
> Platform: GTK
> Python Version: 2.6.6 on linux2
> Dabo Version: Version 0.9.3; Revision 6301M
> UI Version: 2.8.11.0 on wxGTK (gtk2)
> 
> Same thing with Python 2.6, Dabo revision 6241 on OpenSuse 11.1.

        Sounds like a timing issue: Value is being set before Choices has been 
set. What step in "Add from Data Environment" were you on when this happened?



-- Ed Leafe



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to