Oleg Broytmann, el 16 de abril a las 16:21 me escribiste: > On Sat, Apr 14, 2007 at 02:59:51PM -0400, nich2o wrote: > > First of all, I would like to thank you for your work on SQLObject, I > > really appreciate working with it. I have a "feature request" that may > > interest someone else: is it possible to include compression (bz2, > > etc.) in a PickleCol or a new Col type ? I actually do the > > compression/decompression myself while SQLObject does the > > pickling/unpickling but it might be useful to integrate it inside the > > package. > > You can create a new type of column, inherited from BLOBCol or > PickleCol. Publish your code. If the code will be good enough - it will be > included.
Just a thought: what about adding a 'filters' to any "blob-like" column? Something that can be used something like: from sqlobject import SQLObject, BLOBCol, filters as f class A(SQLObject): somecol = BLOBCol(filters=[f.gzip, f.encrypt_aes)) Maybe a more generic mechanism can be used, something like indicating wich functions to use to "encode"/"decode" the column data. Or maybe that's a part of the Validator work, and it a generic FilterValidator could be done to do this job. What I don't have very clear is how easy is to add/change a Column validator is. Again, just some thoughts... :) -- LUCA - Leandro Lucarella - Usando Debian GNU/Linux Sid - GNU Generation ------------------------------------------------------------------------ E-Mail / JID: [EMAIL PROTECTED] GPG Fingerprint: D9E1 4545 0F4B 7928 E82C 375D 4B02 0FE0 B08B 4FB2 GPG Key: gpg --keyserver pks.lugmen.org.ar --recv-keys B08B4FB2 ------------------------------------------------------------------------ For me to ask a woman out, I've got to get into a mental state like the karate guys before they break the bricks. -- George Constanza ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss