Show
Ignore:
Timestamp:
08/04/07 00:27:12 (6 years ago)
Author:
cleverdevil
Message:

Added two new extensions to elixir:

  • elixir.ext.versioned - automatic versioning for elixir entities
  • elixir.ext.encrypted - configurable encryption for elixir entities

For more information, see the unit tests and docstrings. These are both a work in progress.

Files:
1 modified

Legend:

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

    r140 r172  
    168168            field.deferred = False 
    169169            field.primary_key = False 
    170             field.column = sa.Column('%s_assoc_id' % interface_name, None,  
     170            # CHANGE: I had to change the second argument from None to sa.Integer 
     171            # in order to get associable working with the versioning extension... 
     172            # Ben: was this the right thing to do? 
     173            field.column = sa.Column('%s_assoc_id' % interface_name, sa.Integer,  
    171174                                  sa.ForeignKey('%s.%s_id' % (able_name, able_name))) 
    172175            entity._descriptor.add_field(field)