gazza <[email protected]> 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 _set_thingy(self, thing):
... do encryption
self._thingy = encrypted_thingy
def _get_thingy(self):
... do decryption of self._thingy
return decrypted_thingy
thingy = property(_get_thingy, _set_thingy)
orm.mapper(YourTable, your_table,
properties={'_thingy' : your_table.c.thingy})
Faried.
--
(> (length "eclipse") (length "emacs")) => T
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.