Show
Ignore:
Timestamp:
09/06/07 15:55:47 (7 years ago)
Author:
ged
Message:
  • Added test for the case when you refer to a remotely-defined class by its
    named after importing it into the local namespace.
  • Implemented a new syntax to declare fields and relationships, much closer to
    what is found in other Python ORM's. The with_fields syntax is now
    deprecated in favor of a that new syntax. The old statement-based (has_field et
    al.) syntax stays the default for now. This was done with help from a patch
    by Adam Gomaa.
  • Relationships to other classes can now also be defined using the classes
    themselves in addition to the class names. Obviously, this doesn't work for
    forward references.
Files:
1 modified

Legend:

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

    r196 r199  
    2828from elixir.relationships import belongs_to, has_one, has_many, \ 
    2929                                 has_and_belongs_to_many 
     30from elixir.relationships import ManyToOne, OneToOne, OneToMany, ManyToMany 
    3031from elixir.properties import has_property 
    3132from elixir.statements import Statement 
     
    4142           'has_property',  
    4243           'belongs_to', 'has_one', 'has_many', 'has_and_belongs_to_many', 
     44           'ManyToOne', 'OneToOne', 'OneToMany', 'ManyToMany', 
    4345           'using_options', 'using_table_options', 'using_mapper_options', 
    4446           'options_defaults', 'metadata', 'objectstore',