On Thu, Aug 28, 2008 at 3:23 PM, Paul McNett <[EMAIL PROTECTED]> wrote:

> Mike Mabey wrote:
> > Sorry it has taken me so long to reply to your suggestions.
> >
> > On Fri, Aug 22, 2008 at 3:51 PM, Paul McNett <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> As I suspected, that Value attribute entry in the cdxml is getting
> >> evaluated as an int instead of a str. You tried removing the Value
> >> attribute from the cdxml?
> >>
> >
> > Yes, and I'm not sure if it was because of the way I changed it or what,
> but
> > now I'm getting a whole new error.  I've tried everything I can think of
> to
> > fix it, including making sure that the credentials in the cnxml file are
> > correct, testing the connection with CxnEditor, and printing self.AutoSQL
> > and executing the generated SQL statements in the database.  Everything
> > seems to be fine as far as I can tell, but maybe you can make sense of
> the
> > traceback:
> >
> > Traceback (most recent call last):
> >   File "main.py", line 13, in <module>
> >     app.start()
> >   File "C:\src\dabo\dApp.py", line 315, in start
> >     self.setup()
> >   File "C:\src\dabo\dApp.py", line 280, in setup
> >     self.initUIApp()
> >   File "C:\src\dabo\dApp.py", line 307, in initUIApp
> >     self.uiApp.setup()
> >   File "C:\src\dabo\ui\uiwx\uiApp.py", line 302, in setup
> >     frm = self.dApp.MainForm = dabo.ui.createForm(mfc)
> >   File "C:\src\dabo\ui\uiwx\__init__.py", line 1121, in createForm
> >     frm = cls(*args, **kwargs)
> >   File "c:\docume~1\mike\locals~1\temp\tmpahmzdo.py", line 64, in
> __init__
> >     obj = self.getCustControlClass('dRadioList_9826983053')(currParent)
> >   File "c:\docume~1\mike\locals~1\temp\tmpahmzdo.py", line 229, in
> __init__
> >     dabo.ui.dRadioList.__init__(self, parent=parent,
> > attProperties=attProperties, *args, **kwargs)
> >   File "C:\src\dabo\ui\uiwx\dRadioList.py", line 145, in __init__
> >     cim.dControlItemMixin.__init__(self, preClass, parent, properties,
> > attProperties, *args, **kwargs)
> >   File "C:\src\dabo\ui\uiwx\dControlItemMixin.py", line 20, in __init__
> >     super(dControlItemMixin, self).__init__(*args, **kwargs)
> >   File "C:\src\dabo\ui\dDataControlMixinBase.py", line 22, in __init__
> >     dabo.ui.dControlMixin.__init__(self, *args, **kwargs)
> >   File "C:\src\dabo\ui\uiwx\dPemMixin.py", line 185, in __init__
> >     self._afterInit()
> >   File "C:\src\dabo\ui\uiwx\dPemMixin.py", line 319, in _afterInit
> >     self.afterInit()
>
>
> >   File "c:\docume~1\mike\locals~1\temp\tmpahmzdo.py", line 236, in
> afterInit
> >     print biz.getFieldVal('level')
>
> Take this line out. I'm just guessing this is in the afterInit() of your
> form. You are trying to get the value from the bizobj before it's been
> requeried.
>
> Either take that line out, or bracket it like:
>
> try:
>   print biz.getFieldVal('level')
> except dabo.dException.NoRecordsException:
>   print "not requeried yet."
>

Wow, sorry about that.  Okay, so I've removed Value="1" from the cdxml file
and the "No radio button matching..." error is still showing up two or three
times.  And now the dropdown menu is giving this error:

Traceback (most recent call last):
  File "C:\Python25\lib\site-packages\wx-2.8-msw-ansi\wx\_misc.py", line
1341, i
n Notify
    self.notify()
  File "C:\Python25\lib\site-packages\wx-2.8-msw-ansi\wx\_core.py", line
13932,
in Notify
    self.result = self.callable(*self.args, **self.kwargs)
  File "C:\src\dabo\ui\uiwx\dForm.py", line 147, in __update
    super(BaseForm, self).update()
  File "C:\src\dabo\ui\uiwx\dPemMixin.py", line 1219, in update
    self.raiseEvent(dEvents.Update)
  File "C:\src\dabo\ui\uiwx\dPemMixin.py", line 926, in raiseEvent
    super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args,
**kwargs)
  File "C:\src\dabo\lib\eventMixin.py", line 92, in raiseEvent
    bindingFunction(event)
  File "C:\src\dabo\ui\uiwx\dPemMixin.py", line 1196, in __onUpdate
    self.update()
  File "C:\src\dabo\ui\uiwx\dPemMixin.py", line 1219, in update
    self.raiseEvent(dEvents.Update)
  File "C:\src\dabo\ui\uiwx\dPemMixin.py", line 926, in raiseEvent
    super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args,
**kwargs)
  File "C:\src\dabo\lib\eventMixin.py", line 92, in raiseEvent
    bindingFunction(event)
  File "C:\src\dabo\ui\uiwx\dPemMixin.py", line 1196, in __onUpdate
    self.update()
  File "C:\src\dabo\ui\dDataControlMixinBase.py", line 116, in update
    self.Value = src.getFieldVal(self.DataField)
  File "C:\src\dabo\ui\uiwx\dControlItemMixin.py", line 380, in _setValue
    self.KeyValue = value
  File "C:\src\dabo\ui\uiwx\dControlItemMixin.py", line 239, in _setKeyValue
    raise ValueError, _("Trying to set %s.Value to these invalid selections:
%s") % (self.Name, invalidSelections)
ValueError: Trying to set dDropdownList1.Value to these invalid selections:
[0L]

I'm really trying to understand this traceback on my own, because I'm sure
you're getting sick of my emails, but I can't see what in my code could be
causing this.  I've added debugging print satements in the onUpdate() method
for the dropdown list, and none of them print, which suggests to me that I'm
probably looking in the wrong place for what's causing the error.  Any
suggestions?

Thanks,
Mike M.


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
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