Show
Ignore:
Timestamp:
02/07/08 15:57:55 (5 years ago)
Author:
ged
Message:
  • Added an alternate (nicer) syntax to define synonym properties. This syntax
    has a more limited scope, except that it can refer to properties defined in
    a parent entity. This is based on a patch from Alexandre da Silva.
Files:
1 modified

Legend:

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

    r296 r303  
    3232                                 has_and_belongs_to_many, \ 
    3333                                 ManyToOne, OneToOne, OneToMany, ManyToMany 
    34 from elixir.properties import has_property, GenericProperty, ColumnProperty 
     34from elixir.properties import has_property, GenericProperty, ColumnProperty, \ 
     35                              Synonym 
    3536from elixir.statements import Statement 
    3637 
     
    3940 
    4041__all__ = ['Entity', 'EntityMeta', 
    41            'Field', 'has_field', 'with_fields', 
    42            'has_property', 'GenericProperty', 'ColumnProperty', 
     42           'Field', 'has_field', 'with_fields',  
     43           'has_property', 'GenericProperty', 'ColumnProperty', 'Synonym', 
    4344           'belongs_to', 'has_one', 'has_many', 'has_and_belongs_to_many', 
    4445           'ManyToOne', 'OneToOne', 'OneToMany', 'ManyToMany', 
     
    4647           'options_defaults', 'metadata', 'objectstore', 'session', 
    4748           'create_all', 'drop_all', 
    48            'setup_all', 'cleanup_all',  
     49           'setup_all', 'cleanup_all', 
    4950           'setup_entities', 'cleanup_entities'] + \ 
    5051           sqlalchemy.types.__all__