Changeset 119
- Timestamp:
- 06/08/07 10:28:46 (6 years ago)
- Location:
- elixir/trunk
- Files:
-
- 6 modified
-
CHANGES (modified) (1 diff)
-
elixir/__init__.py (modified) (2 diffs)
-
elixir/entity.py (modified) (2 diffs)
-
elixir/fields.py (modified) (1 diff)
-
elixir/options.py (modified) (1 diff)
-
elixir/relationships.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
elixir/trunk/CHANGES
r117 r119 1 1 0.4.0 2 - Added ext sub-package for additional Elixir statements. 2 3 - Added ext.associable for generating polymorphic associations with Elixir 3 4 Statements. (Many thanks to Mike Bayer for his support on writing this.) 4 - Added ext sub-package for additional Elixir statements.5 5 - Added default __init__ method on entities so that subclasses can override it 6 6 and still have the "set attribute by keyword" behavior by calling super() 7 7 - Added .q property on the metaclass, so that you can get a query on an entity 8 8 by just using Entity.q, instead of using Entity.query() 9 - Made EntityMeta public, so that people can actually define their own base 10 class. 9 11 - Fixed relationships to tables using a schema (Patch by Neil Blakey-Milner) 10 12 -
elixir/trunk/elixir/__init__.py
r89 r119 19 19 import sqlalchemy 20 20 21 from sqlalchemy.ext.sessioncontext import SessionContext 22 from sqlalchemy.types import * 23 from elixir.options import * 24 from elixir.entity import Entity, EntityDescriptor 25 from elixir.fields import * 26 from elixir.relationships import * 21 from sqlalchemy.ext.sessioncontext import SessionContext 22 from sqlalchemy.types import * 23 24 from elixir.options import using_options, using_table_options, \ 25 using_mapper_options, options_defaults 26 from elixir.entity import Entity, EntityMeta, EntityDescriptor 27 from elixir.fields import has_field, with_fields, Field 28 from elixir.relationships import belongs_to, has_one, has_many, \ 29 has_and_belongs_to_many 27 30 28 31 try: … … 33 36 __version__ = '0.3.0' 34 37 35 __all__ = ['Entity', ' Field', 'has_field', 'with_fields',38 __all__ = ['Entity', 'EntityMeta', 'Field', 'has_field', 'with_fields', 36 39 'belongs_to', 'has_one', 'has_many', 'has_and_belongs_to_many', 37 40 'using_options', 'using_table_options', 'using_mapper_options', -
elixir/trunk/elixir/entity.py
r113 r119 18 18 import elixir 19 19 20 21 __all__ = ['Entity'] 22 23 __pudge_all__ = __all__ 20 __pudge_all__ = ['Entity', 'EntityMeta'] 24 21 25 22 DEFAULT_AUTO_PRIMARYKEY_NAME = "id" … … 296 293 class EntityMeta(type): 297 294 """ 298 Entity meta class. 295 Entity meta class. 296 You should only use this if you want to define your own base class for your 297 entities (ie you don't want to use the provided 'Entity' class). 299 298 """ 300 299 -
elixir/trunk/elixir/fields.py
r82 r119 77 77 from elixir.statements import Statement 78 78 79 __all__ = ['has_field', 'with_fields', 'Field']80 81 79 __pudge_all__ = ['Field'] 82 80 -
elixir/trunk/elixir/options.py
r96 r119 112 112 from elixir.statements import Statement 113 113 114 __all__ = ['using_options', 'using_table_options', 'using_mapper_options',115 'options_defaults']116 117 114 __pudge_all__ = ['options_defaults'] 118 115 -
elixir/trunk/elixir/relationships.py
r114 r119 198 198 import sys 199 199 200 201 __all__ = ['belongs_to', 'has_one', 'has_many', 'has_and_belongs_to_many']202 203 200 __pudge_all__ = [] 204 201
