Roundtrip SQL data especially datetime

fumanchu fumanchu at amor.org
Sat Dec 16 11:30:11 EST 2006


dyork wrote:
> Thanks Gabriel, but when I said "round trip" I really did mean: convert all
> the way to string and all the way back again, so your kind advice is not all
> that helpful. I need string to get to a non-Python object or a Web page.

Then you need two adaptation layers: one between your app and the DB
(which you already have) and one between your app and the web page or
other user interface.

Here's the web adaptation layer I use:
http://projects.amor.org/misc/browser/alamode.py
Have a look at the coerce_in and coerce_out functions.


Robert Brewer
System Architect
Amor Ministries
fumanchu at amor.org




More information about the Python-list mailing list