diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-03-30 10:39:36 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-03-30 10:39:36 -0400 |
commit | 43b9f0d116580474ac56c532a1427a4cdeb3748b (patch) | |
tree | b5c24bcd36add1e5ac2c0778df787ccf745cca45 /lib/sqlalchemy/ext/compiler.py | |
parent | 75e14f855ee64a01bb79e66f8a868911f6c9e583 (diff) | |
download | sqlalchemy-43b9f0d116580474ac56c532a1427a4cdeb3748b.tar.gz |
- the compiler extension now allows @compiles decorators
on base classes that extend to child classes, @compiles
decorators on child classes that aren't broken by a
@compiles decorator on the base class.
Diffstat (limited to 'lib/sqlalchemy/ext/compiler.py')
-rw-r--r-- | lib/sqlalchemy/ext/compiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/ext/compiler.py b/lib/sqlalchemy/ext/compiler.py index 3226b0efd..dde49e232 100644 --- a/lib/sqlalchemy/ext/compiler.py +++ b/lib/sqlalchemy/ext/compiler.py @@ -165,7 +165,7 @@ A big part of using the compiler extension is subclassing SQLAlchemy expression def compiles(class_, *specs): def decorate(fn): - existing = getattr(class_, '_compiler_dispatcher', None) + existing = class_.__dict__.get('_compiler_dispatcher', None) if not existing: existing = _dispatcher() |