From: Javier R. <jav...@Ho...> - 2003-07-29 06:15:24
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I was trying to make a BoolCol class just to learn how things work. I grabed the StringCol and SOStringCol classes, changed things and the generated SQL was right. This was very easy to make!! Now I was wondering if there is a way I can define filters for the data, both in it's way in and out of the DB, so that I can take whatever the Python type is and change it to what the DB wants. In this case change the int to a '1' or the like for SQLite and 'TRUE' for PostgreSQL (don't know MySQL) and the inverse operation when read from the DB. Is there a way to do this? Thanks, Javier PS: I'm developing an app from scratch, should I be using the SQLObject from CVS? Has it's structure changed much from v0.4? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/JhJi8XQC840MeeoRAnrpAKCPxQAgTjONiYfl7ssQ3TN3qXHQhwCaA4ly eMRgVkId6zZdbkSDhM6+5vY= =Lf4C -----END PGP SIGNATURE----- |