Show
Ignore:
Timestamp:
10/23/07 11:41:22 (6 years ago)
Author:
ged
Message:

- migrate to attribute-based syntax in all examples and documentation.
- completed doc

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • elixir/trunk/elixir/ext/encrypted.py

    r201 r236  
    1414     
    1515    class Person(Entity): 
    16         has_field('name', Unicode) 
    17         has_field('password', Unicode) 
    18         has_field('ssn', Unicode) 
     16        name = Field(Unicode) 
     17        password = Field(Unicode) 
     18        ssn = Field(Unicode) 
    1919        acts_as_encrypted(for_columns=['password', 'ssn'], with_secret='secret') 
    2020