I've got that working for reads and writes, so "id = i.SSN" and "i.SSN
= '999999999' " work as expected. The problem is I cant figure out a
way to search by an encrypted field. At the very least I think the
bySSN method should run the argument through the from_python part of
the validator. It would be nice if select and selectBy also did I can
see how this would be more complicated.
I have a custom subclass of SQLObject that all of my real classes
derive from. As a hack, is there a good way to monkey-patch all of the
by* methods of encrypted columns with a wrapper function?
On 3/20/07, Oleg Broytmann <ph...@ph...> wrote:
> Hello.
>
> The real conversion is performed by a validator. So for a new column
> class you need a validator class, an SOCol class that will create the
> validator, and a Col class that will be used as a column description.
> The best examples are in col.py module. See how PickleCol is
> implemented.
>
> Oleg.
> --
> Oleg Broytmann http://phd.pp.ru/ ph...@ph...
> Programmers don't die, they just GOSUB without RETURN.
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> sqlobject-discuss mailing list
> sql...@li...
> https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss
>
|