John, here's the entire trace back:

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_misc.py",
line 1341, in Notify
    self.notify()
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 14652, in Notify
    self.result = self.callable(*self.args, **self.kwargs)
  File "/usr/lib/python2.5/site-packages/dabo/ui/uiwx/dForm.py", line 123,
in __update
    super(BaseForm, self).update()
  File "/usr/lib/python2.5/site-packages/dabo/ui/uiwx/dPemMixin.py", line
1244, in update
    self.raiseEvent(dEvents.Update)
  File "/usr/lib/python2.5/site-packages/dabo/ui/uiwx/dPemMixin.py", line
949, in raiseEvent
    super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args,
**kwargs)
  File "/usr/lib/python2.5/site-packages/dabo/lib/eventMixin.py", line 93,
in raiseEvent
    bindingFunction(event)
  File "/usr/lib/python2.5/site-packages/dabo/ui/uiwx/dPemMixin.py", line
1225, in __onUpdate
    self.update()
  File "/usr/lib/python2.5/site-packages/dabo/ui/uiwx/dPemMixin.py", line
1244, in update
    self.raiseEvent(dEvents.Update)
  File "/usr/lib/python2.5/site-packages/dabo/ui/uiwx/dPemMixin.py", line
949, in raiseEvent
    super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args,
**kwargs)
  File "/usr/lib/python2.5/site-packages/dabo/lib/eventMixin.py", line 93,
in raiseEvent
    bindingFunction(event)
  File "/usr/lib/python2.5/site-packages/dabo/ui/uiwx/dPemMixin.py", line
1225, in __onUpdate
    self.update()
  File "/usr/lib/python2.5/site-packages/dabo/ui/dDataControlMixinBase.py",
line 97, in update
    self.__dataUpdate()
  File "/usr/lib/python2.5/site-packages/dabo/ui/dDataControlMixinBase.py",
line 114, in __dataUpdate
    self.Value = src.getFieldVal(self.DataField)
  File "/usr/lib/python2.5/site-packages/dabo/ui/uiwx/dControlItemMixin.py",
line 382, in _setValue
    self.StringValue = value
  File "/usr/lib/python2.5/site-packages/dabo/ui/uiwx/dControlItemMixin.py",
line 356, in _setStringValue
    raise ValueError(_("String must be present in the choices."))
ValueError: String must be present in the choices.


Paul;
       I have tried one other way, and that was setting up a database table
for the states. I can get that to work no problem. My thought was..why the
unnecessary over head. To me that would mean the call to the database. This
isn't a field that is likely to change. Doesn't it run faster from teh code
without a database call?

Also I wan't to use this method when I do my own program for a couple of
fields that will only have 2 to 4 options.



On Wed, Jul 15, 2009 at 6:30 PM, Paul McNett <[email protected]> wrote:

> Paul McNett wrote:
> > Carey Gagnon wrote:
> >> John, thanks so much! I knew there had to be a simpler way. Ihad already
> >> successfully created the drop downlist it was getting it populated
> without a
> >> db look up that I was having an issue with. Now it is populating and
> >> correctly saving everything to the database.
> >>
> >> Still one issue however. I am now getting the following error shown in
> the
> >> terminal window (I'm running linux) This is only a partial trace back:
> >>
> >> File
> "/usr/lib/python2.5/site-packages/dabo/ui/uiwx/dControlItemMixin.py",
> >> line 356, in _setStringValue
> >>     raise ValueError(_("String must be present in the choices."))
> >> ValueError: String must be present in the choices.
> >>
> >> Any ideas?
> >
> > Could you please post the entire traceback? I just changed this behavior
> > yesterday (raising a ValueError instead of just outputting the message
> > to the log).
>
> Actually I misspoke. I changed something else similar in dRadioList. But
> still, the entire traceback is what we really need to diagnose why this
> is happening in your case...
>
> Paul
>
>
[excessive quoting removed by server]

_______________________________________________
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