Changeset 391 for elixir/trunk/elixir

Show
Ignore:
Timestamp:
08/18/08 18:32:48 (4 years ago)
Author:
ged
Message:

follow SA on the rename of on_reconstitute to reconstructor in SA0.5 trunk

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • elixir/trunk/elixir/events.py

    r352 r391  
    66    'before_delete', 
    77    'after_delete', 
    8     'on_reconstitute' 
     8    'reconstructor' 
    99] 
    1010 
     
    2424after_delete = create_decorator('after_delete') 
    2525try: 
    26     from sqlalchemy.orm.attributes import on_reconstitute 
     26    from sqlalchemy.orm import reconstructor 
    2727except ImportError: 
    28     def on_reconstitute(func): 
    29         raise Exception('The on_reconstitute method decorator is only ' 
     28    def reconstructor(func): 
     29        raise Exception('The reconstructor method decorator is only ' 
    3030                        'available with SQLAlchemy 0.5 and later')