On 08/26/2010 04:16 AM, Ed Leafe wrote:
> On Aug 26, 2010, at 12:35 AM, M. Milanuk wrote:
>
>> 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.
>
>       It's a typo in the docs; you're not doing anything wrong. I've fixed it 
> with the correct code.
>
>
> -- Ed Leafe
>
>
>

Okay, thats a relief.  I changed things to match the updated document 
and things look much better.  I still get the following error when I run 
'python main.py', though:

C:\Users\Monte\Projects\pycon_hours>python main.py
Dabo Error Log: Thu Aug 26 09:05:04 2010: !!! Data Type Mismatch: 
field=servicedate. Expecting: <type 'unicode'>; got: <type 'datetime.date'>


Is this perhaps another sqlite issue?

As mentioned, I added the 'Save' and 'Cancel' buttons and updated the 
onHit methods as described in the tutorial doc... but when I run the 
app, the following happens:  I can select and edit all the fields, they 
appear as they should, but when I click 'Save', the record saves with 
'<None>' in the Client field.  It doesn't trip the validateRecord method 
from HoursBizobj.py like it does if I didn't select a client at all, but 
it doesn't save the selected client either.  When I close out the app 
window and re-run it... there is no new saved record at all.

Thanks,

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]

Reply via email to