Hello,

I want to write a Dabo application which uses a PostgreSQL database 
table with a field of type interval. First try, hand-coding a small test:

- In the bizobj I didn't set the DataStructure explicitly, because I 
couldn't find the right field_type for interval or for 
datetime.timedelta, not even in dbpostgresql.py.

- In the form I used a dTextBox for that field, but got this:
TypeError: unsupported type for timedelta days component: unicode. What 
sort of entry control could I use?

Platform: GTK
Python Version: 2.6.5 on linux2
Dabo Version: Version 0.9.3; Revision 6183M
UI Version: 2.8.10.1 on wxGTK (gtk2)

Psycopg2 seems to convert interval field values into datetime.timedelta 
days. This isn't really good for all use cases, but this time it would 
serve. And it's no Dabo problem anyway - all calculations involving 
interval fields should probably be done in the database.

So the problem I want to solve is just how to display, edit and save the 
interval field.

Thank you,
Sibylle
_______________________________________________
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