Hello,

I am trying to use elixir.ext.encrypted facility to encrypt some
columns. I downloaded PyCrypto for Win32 Python 2.5.

http://www.voidspace.org.uk/python/modules.shtml#pycrypto

Now when I run this small code snippet ,
from elixir import *
from elixir.ext.encrypted import acts_as_encrypted

class Person(Entity):
    name = Field(Unicode)
    password = Field(Unicode)
    ssn = Field(Unicode)
    acts_as_encrypted(for_columns=['password', 'ssn'],
                      with_secret='secret')

I get the following error :

Traceback (most recent call last):
  File "enc.py", line 4, in <module>
    class Person(Entity):
  File "d:\Program Files\PyGTK\Python\lib\site-packages\elixir-0.5.2-
py2.5.egg\e
lixir\entity.py", line 648, in __init__
  File "d:\Program Files\PyGTK\Python\lib\site-packages\elixir-0.5.2-
py2.5.egg\e
lixir\statements.py", line 46, in process_mutators
  File "d:\Program Files\PyGTK\Python\lib\site-packages\elixir-0.5.2-
py2.5.egg\e
lixir\statements.py", line 51, in process
TypeError: Error when calling the metaclass bases
    __init__() got an unexpected keyword argument 'for_columns'

I have verified that I could import from Crypto module. Is there
anything wrong? Thanks for the help!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" 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/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to