Show
Ignore:
Timestamp:
06/08/07 10:28:46 (8 years ago)
Author:
ged
Message:

- Made EntityMeta public, so that people can actually define their own base

class (I thought I already made this possible but it seems like not).

- Removed all all declarations from subpackages as they are IMHO useless

since we can't get to them from outside of the lib, consequently replaced
all the "from xyz import *" lines in init.py by explicit imports.

Files:
1 modified

Legend:

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

    r89 r119  
    1919import sqlalchemy 
    2020 
    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 * 
     21from sqlalchemy.ext.sessioncontext import SessionContext 
     22from sqlalchemy.types import * 
     23 
     24from elixir.options import using_options, using_table_options, \ 
     25                           using_mapper_options, options_defaults 
     26from elixir.entity import Entity, EntityMeta, EntityDescriptor 
     27from elixir.fields import has_field, with_fields, Field 
     28from elixir.relationships import belongs_to, has_one, has_many, \ 
     29                                 has_and_belongs_to_many 
    2730 
    2831try: 
     
    3336__version__ = '0.3.0' 
    3437 
    35 __all__ = ['Entity', 'Field', 'has_field', 'with_fields', 
     38__all__ = ['Entity', 'EntityMeta', 'Field', 'has_field', 'with_fields', 
    3639           'belongs_to', 'has_one', 'has_many', 'has_and_belongs_to_many', 
    3740           'using_options', 'using_table_options', 'using_mapper_options',