On Thursday, December 09, 2010 08:55:01 am Ricardo Aráoz wrote:
> Hi, been getting an error in ClassDesigner in XP. In Ubuntu it works ok.
> Luckily it's easy to reproduce.
> 
> This is :
> Platform: Win
> Python Version: 2.7.1 on win32
> Dabo Version: Version 0.9.3; Revision ~6238
> UI Version: 2.8.11.0 on wxMSW
> 
> Make dir struct with quickStart. With the conection designer create a
> connection to pycon database in dabodev.com. Open class designer and
> create a new form. In the form add a new vertical sizer with 2 slots. In
> the upper slot right click and add controls from data environment. There
> you get the following exception :
> ---------------------------------------------------------------------------
> ----------------------------------------------------------------------
> 
> Z:\Dev\hrs>z:\Python27\python.exe z:\Dev\Dabo\ide\ClassDesigner.py
> Traceback (most recent call last):
>    File "z:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py",
> line 1464
> 0, in <lambda>
>      lambda event: event.callable(*event.args, **event.kw) )
>    File "Z:\Dev\Dabo\dabo\ui\dDataControlMixinBase.py", line 366, in
> _delayedSetD
> ataSource
>      self.update()
>    File "Z:\Dev\Dabo\dabo\ui\dDataControlMixinBase.py", line 102, in update
>      self.__dataUpdate()
>    File "Z:\Dev\Dabo\dabo\ui\dDataControlMixinBase.py", line 154, in
> __dataUpdate
> 
>      self.Value = srcatt
>    File "Z:\Dev\Dabo\dabo\ui\uiwx\dControlItemMixin.py", line 386, in
> _setValue
>      self.StringValue = value
>    File "Z:\Dev\Dabo\dabo\ui\uiwx\dControlItemMixin.py", line 360, in
> _setStringV
> alue
>      raise ValueError(_("String must be present in the choices: '%s'") %
> string)
> ValueError: String must be present in the choices: ''
> Traceback (most recent call last):
>    File "z:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\_misc.py",
> line 1357
> , in Notify
>      self.notify()
>    File "z:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py",
> line 1474
> 2, in Notify
>      self.result = self.callable(*self.args, **self.kwargs)
>    File "Z:\Dev\Dabo\dabo\ui\uiwx\dPemMixin.py", line 1326, in update
>      self.raiseEvent(dEvents.Update)
>    File "Z:\Dev\Dabo\dabo\ui\uiwx\dPemMixin.py", line 1019, in raiseEvent
>      super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args,
> **kwargs)
>    File "Z:\Dev\Dabo\dabo\lib\eventMixin.py", line 96, in raiseEvent
>      bindingFunction(event)
>    File "Z:\Dev\Dabo\dabo\ui\uiwx\dPemMixin.py", line 1306, in __onUpdate
>      self.update()
>    File "Z:\Dev\Dabo\dabo\ui\uiwx\dPemMixin.py", line 1326, in update
>      self.raiseEvent(dEvents.Update)
>    File "Z:\Dev\Dabo\dabo\ui\uiwx\dPemMixin.py", line 1019, in raiseEvent
>      super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args,
> **kwargs)
>    File "Z:\Dev\Dabo\dabo\lib\eventMixin.py", line 96, in raiseEvent
>      bindingFunction(event)
>    File "Z:\Dev\Dabo\dabo\ui\uiwx\dPemMixin.py", line 1306, in __onUpdate
>      self.update()
>    File "Z:\Dev\Dabo\dabo\ui\uiwx\dPemMixin.py", line 1326, in update
>      self.raiseEvent(dEvents.Update)
>    File "Z:\Dev\Dabo\dabo\ui\uiwx\dPemMixin.py", line 1019, in raiseEvent
>      super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args,
> **kwargs)
>    File "Z:\Dev\Dabo\dabo\lib\eventMixin.py", line 96, in raiseEvent
>      bindingFunction(event)
>    File "Z:\Dev\Dabo\dabo\ui\uiwx\dPemMixin.py", line 1306, in __onUpdate
>      self.update()
>    File "Z:\Dev\Dabo\dabo\ui\uiwx\dPemMixin.py", line 1326, in update
>      self.raiseEvent(dEvents.Update)
>    File "Z:\Dev\Dabo\dabo\ui\uiwx\dPemMixin.py", line 1019, in raiseEvent
>      super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args,
> **kwargs)
>    File "Z:\Dev\Dabo\dabo\lib\eventMixin.py", line 96, in raiseEvent
>      bindingFunction(event)
>    File "Z:\Dev\Dabo\dabo\ui\uiwx\dPemMixin.py", line 1306, in __onUpdate
>      self.update()
>    File "Z:\Dev\Dabo\dabo\ui\dDataControlMixinBase.py", line 102, in update
>      self.__dataUpdate()
>    File "Z:\Dev\Dabo\dabo\ui\dDataControlMixinBase.py", line 154, in
> __dataUpdate
> 
>      self.Value = srcatt
>    File "Z:\Dev\Dabo\dabo\ui\uiwx\dControlItemMixin.py", line 386, in
> _setValue
>      self.StringValue = value
>    File "Z:\Dev\Dabo\dabo\ui\uiwx\dControlItemMixin.py", line 360, in
> _setStringV
> alue
>      raise ValueError(_("String must be present in the choices: '%s'") %
> string)
> ValueError: String must be present in the choices: ''
> Z:\Dev\Dabo\dabo\lib\SimpleCrypt.py:52: UserWarning: WARNING:
> SimpleCrypt is not
>   secure. Please see http://wiki.dabodev.com/SimpleCrypt for more
> information
>    warnings.warn("WARNING: SimpleCrypt is not secure. Please see
> http://wiki.dabo
> dev.com/SimpleCrypt for more information")
> ---------------------------------------------------------------------------
> ----------------------------------------------------------------------
> 
> 
> But the ClassDesigner keeps on working, now select the hours table,
> select all records and unselect the pkid, choose the Grid layout (if you
> choose column layout everything keeps working and no problem arises),
> click on next and you get an error window from XP asking if you want to
> send them an error report.
> The command window shows :
> 
> XXX lineno: 558, opcode: 0
General Note:
This is 2.7
ohnf
_______________________________________________
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