<sigh> me again.
I had everything working more or less without complaints up until the
beginning of this section. Now... I'm so turned around I don't even
know where to begin.
For starters, I guess, the modifications to def afterInitAll(self):
threw me for a loop. Mainly because I'd followed the whole bit with
specifying the RegID for dDropdownList as 'ClientList', then referencing
it as self.ClientList... with names and keys to pull the client names
into the dropdown list through a join on the clientfk field. Then we
went and completely scrubbed those lines from the code for the form? At
first, it didn't work in that I just got the clientfk values in the
field in the form, along with a whole slew of errors in the DOS window
(running this on Windows Vista + sqlite) about NoneType, etc.
Tried commenting out the 'new' lines and running with the 'old' lines...
okay that worked again. Tried working on various bits here and there,
but now when I run 'python main.py', the date doesn't update, and even
when I just said 'the heck with it' and put the code back the way the
tutorial box had indicated... now it doesn't update the form with a new
date or blank record at all. Think I fiddled with too many bits and
lost track of what changed where. Dang, I *really* don't want to have
to start this over *again* :(
So... as of right now, the errors I'm getting are these: when I run
the form with the afterInitAll code as shown in the tutorial I get this
feedback in the DOS box (and no new record):
C:\Users\Monte\Projects\pycon_hours>python main.py
Traceback (most recent call last):
File "C:\Python26\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
"C:\Python26\lib\site-packages\dabo-0.9.2-py2.6.egg\dabo\ui\uiwx\dPemMixi
n.py", line 331, in _afterInitAll
self.afterInitAll()
File "c:\users\monte\appdata\local\temp\tmp1ul2ls.py", line 233, in
afterInitA
ll
clientBiz = self.Form.getBizobj("clients")
AttributeError: 'NoneType' object has no attribute 'getBizobj'
...and the ClientList dropdown box is empty.
For whatever reason, it's not liking the self.Form bit. If I go in and
edit that back to what it was (self.getBizobj("clients")... the form
displays as it should. But... I get these errors about the wrong data type:
C:\Users\Monte\Projects\pycon_hours>python main.py
Dabo Error Log: Wed Aug 25 21:31:58 2010: !!! Data Type Mismatch:
field=serviced
ate. Expecting: <type 'unicode'>; got: <type 'datetime.date'>
...and the ClientList dropdown box is still empty. The validateRecord
method works (I kept moving ahead a little and finished that part), though.
Please help,
Monte
_______________________________________________
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]