Show
Ignore:
Timestamp:
03/27/08 18:33:22 (5 years ago)
Author:
ged
Message:

Apply one more patch from Jason R. Coombs for python2.3 compatibility
(including in our tests). Thanks!

Files:
1 modified

Legend:

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

    r309 r313  
    115115            qualifier_method = lambda self: None 
    116116         
    117         @before_insert 
    118117        def _init_position(self): 
    119118            s = select( 
     
    125124            a = s.alias() 
    126125            setattr(self, position_column_name, select([func.max(a.c.value)])) 
    127          
    128         @before_delete 
     126        _init_position = before_insert(_init_position) 
     127         
    129128        def _shift_items(self): 
    130129            self.table.update( 
     
    137136                } 
    138137            ).execute() 
     138        _shift_items = before_delete(_shift_items) 
    139139         
    140140        def move_to_bottom(self):