Hi All,
   I have an SQLite table with a DATE field (called Date) defined. In my Bizobj 
it is defined in the datastructure as :-

("Date", "D", False, "Transactions", "Date"),

and 
 
self.DefaultValues = { "Date" : datetime.date.today()}

My screen has this definition :-

  self.DateTxt = dabo.ui.dDateTextBox(self.basePanel, Width=75, Height=20, 
Left=70, Top=110, DataSource="Transactions", DataField="Date")

(nb I have also tried just a dTextBox with the same result)

When I run the form I get the following error using the default value :-

Dabo Error Log: Wed Feb 18 14:19:18 2009: !!! Data Type Mismatch: field=Date. 
Expecting: <type 'datetime.date'>; got: <type 'unicode'>

I know that SQLite stores everything as strings - but I would have expected 
dabo/python/SQLite to do the conversions at the right time given my data 
definitions.

Does anyone have any clues?

Thanks

Rodgy

--- 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/4abc955869114ea7b67367cc8ce55...@roger

Reply via email to