Re: encryption and pylons and sql-alchemy

2010-03-03 Thread Mike Orr
On Wed, Mar 3, 2010 at 8:30 AM, Mariano Mara wrote: > Excerpts from gazza's message of Wed Feb 10 18:08:12 -0300 2010: >> Hello, >> >> I need to encrypt a couple of table entries of sql-alchemy database. >> I could cycle through the entries and encrypt my own, however does >> pylons offer an api t

Re: Validating a select box

2010-03-03 Thread Ian Wilson
Just an additional note, you can combine validators to solve the int/ str problem using All or Any, (from formencode import All, Any) such as: my_select = All(OneOf([0,1,2,3,5,8,13,21,34]), Int()) So here Int converts the string to an integer and that integer gets checked by OneOf. You probably n

Re: encryption and pylons and sql-alchemy

2010-03-03 Thread Mariano Mara
Excerpts from gazza's message of Wed Feb 10 18:08:12 -0300 2010: > Hello, > > I need to encrypt a couple of table entries of sql-alchemy database. > I could cycle through the entries and encrypt my own, however does > pylons offer an api to do this? > > Much appreciated, > Garyc > Several databas

Re: encryption and pylons and sql-alchemy

2010-03-03 Thread Faried Nawaz
gazza writes: > I need to encrypt a couple of table entries of sql-alchemy database. > I could cycle through the entries and encrypt my own, however does > pylons offer an api to do this? Does something like this work for you? # In yourapp/model/__init__.py: class YourTable(object): def _s