[Sqlalchemy-commits] sqlalchemy: revert this, the instrumentation here is conditional
Brought to you by:
zzzeek
From: <co...@sq...> - 2012-03-14 04:15:05
|
details: http://hg.sqlalchemy.org/sqlalchemy/sqlalchemy/rev/a3810edb8eee changeset: 8150:a3810edb8eee user: Mike Bayer <mi...@zz...> date: Tue Mar 13 21:14:39 2012 -0700 description: revert this, the instrumentation here is conditional diffstat: doc/build/core/types.rst | 2 +- lib/sqlalchemy/sql/visitors.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diffs (33 lines): diff -r be872b3d52b7 -r a3810edb8eee doc/build/core/types.rst --- a/doc/build/core/types.rst Tue Mar 13 21:07:09 2012 -0700 +++ b/doc/build/core/types.rst Tue Mar 13 21:14:39 2012 -0700 @@ -284,7 +284,7 @@ The :class:`.TypeDecorator` allows the creation of custom types which add bind-parameter and result-processing behavior to an existing -type object. It is used when additional in-Python marshalling of data +type object. It is used when additional in-Python marshaling of data to and from the database is required. .. autoclass:: TypeDecorator diff -r be872b3d52b7 -r a3810edb8eee lib/sqlalchemy/sql/visitors.py --- a/lib/sqlalchemy/sql/visitors.py Tue Mar 13 21:07:09 2012 -0700 +++ b/lib/sqlalchemy/sql/visitors.py Tue Mar 13 21:14:39 2012 -0700 @@ -52,7 +52,7 @@ super(VisitableType, cls).__init__(clsname, bases, clsdict) return - cls._compiler_dispatch = _generate_dispatch(cls) + _generate_dispatch(cls) super(VisitableType, cls).__init__(clsname, bases, clsdict) @@ -81,7 +81,7 @@ """Look for an attribute named "visit_" + self.__visit_name__ on the visitor, and call it with the same kw params. """ - return _compiler_dispatch + cls._compiler_dispatch = _compiler_dispatch class Visitable(object): """Base class for visitable objects, applies the |