Changeset 466

Show
Ignore:
Timestamp:
09/24/09 20:42:59 (3 years ago)
Author:
ged
Message:

deprecate autosetup option

Location:
elixir/trunk/elixir
Files:
2 modified

Legend:

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

    r463 r466  
    762762 
    763763    # Process mutators. Needed before _install_autosetup_triggers so that 
    764     # we know of the metadata 
     764    # we know of the metadata (and whether the entity is autosetuped or not). 
    765765    process_mutators(cls) 
    766766 
     
    814814    #TODO: move as much as possible of those "_private" values to the 
    815815    # descriptor, so that we don't mess the initial class. 
     816    warnings.warn("The 'autosetup' option on entities is deprecated. " 
     817        "Please call setup_all() manually after all your entities have been " 
     818        "declared.", DeprecationWarning, stacklevel=4) 
    816819    tablename = cls._descriptor.tablename 
    817820    schema = cls._descriptor.table_options.get('schema', None) 
  • elixir/trunk/elixir/options.py

    r460 r466  
    116116|                     | that module.                                          | 
    117117+---------------------+-------------------------------------------------------+ 
    118 | ``autosetup``       | Specify whether that entity will contain automatic    | 
    119 |                     | setup triggers. That is if this entity will be        | 
     118| ``autosetup``       | DEPRECATED. Specify whether that entity will contain  | 
     119|                     | automatic setup triggers.                             | 
     120|                     | That is if this entity will be                        | 
    120121|                     | automatically setup (along with all other entities    | 
    121122|                     | which were already declared) if any of the following  |