diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-05-20 09:40:55 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-05-20 09:40:55 -0400 |
commit | 0b94db2cad013494446d5af90067ac6b1272e7b7 (patch) | |
tree | fadd96212ae0a3f9bcda40427aa8701fef5b3fb3 /lib/sqlalchemy/ext/declarative.py | |
parent | 1e1904f8680937e42497995bab42d39a4045148f (diff) | |
download | sqlalchemy-0b94db2cad013494446d5af90067ac6b1272e7b7.tar.gz |
looks like I finally stepped on someone elses dunders...will have to figure out
how to make a public API for this anyway
Diffstat (limited to 'lib/sqlalchemy/ext/declarative.py')
-rwxr-xr-x | lib/sqlalchemy/ext/declarative.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sqlalchemy/ext/declarative.py b/lib/sqlalchemy/ext/declarative.py index 6ed6d96f4..25dd72b24 100755 --- a/lib/sqlalchemy/ext/declarative.py +++ b/lib/sqlalchemy/ext/declarative.py @@ -1316,7 +1316,7 @@ def _as_declarative(cls, classname, dict_): column_copies, our_stuff, mapper_args_fn) - if not hasattr(cls, '__prepare__'): + if not hasattr(cls, '_sa_decl_prepare'): mt.map() class _MapperConfig(object): @@ -1914,11 +1914,11 @@ class DeferredReflection(object): to_map = [m for m in _MapperConfig.configs.values() if issubclass(m.cls, cls)] for thingy in to_map: - cls.__prepare__(thingy.local_table, engine) + cls._sa_decl_prepare(thingy.local_table, engine) thingy.map() @classmethod - def __prepare__(cls, local_table, engine): + def _sa_decl_prepare(cls, local_table, engine): # autoload Table, which is already # present in the metadata. This # will fill in db-loaded columns |