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."
Paul
_______________________________________________
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]