Changeset 295

Show
Ignore:
Timestamp:
01/31/08 12:12:59 (5 years ago)
Author:
ged
Message:

- applied part of a patch from Ben Bangert so that passing polymorphic_identity in the using_mapper_options is *not* overriden by the one generated by Elixir.
- bump version number.

Location:
elixir/trunk
Files:
2 modified

Legend:

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

    r285 r295  
    397397                    #TODO: make this customizable (both callable and string) 
    398398                    #TODO: include module name 
    399                     kwargs['polymorphic_identity'] = \ 
    400                         self.entity.__name__.lower() 
     399                    if 'polymorphic_identity' not in kwargs: 
     400                        kwargs['polymorphic_identity'] = \ 
     401                            self.entity.__name__.lower() 
    401402 
    402403                if self.inheritance == 'concrete': 
  • elixir/trunk/setup.py

    r277 r295  
    22 
    33setup(name="Elixir", 
    4       version="0.5.0", 
     4      version="0.5.1", 
    55      description="Declarative Mapper for SQLAlchemy", 
    66      long_description="""