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
super(VisitableType, cls).__init__(clsname, bases, clsdict)
return
- cls._compiler_dispatch = _generate_dispatch(cls)
+ _generate_dispatch(cls)
super(VisitableType, cls).__init__(clsname, bases, clsdict)
"""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