"for information on how to replicate its behavior.")
def mapper(self, *args, **kwargs):
"""return a mapper() function which associates this ScopedSession with the Mapper.
-
+
DEPRECATED.
-
+
"""
from sqlalchemy.orm import mapper
return EXT_CONTINUE
def dispose_class(self, mapper, class_):
- if hasattr(class_, '__init__') and hasattr(class_.__init__, '_oldinit'):
- if class_.__init__._oldinit is not None:
- class_.__init__ = class_.__init__._oldinit
- else:
- delattr(class_, '__init__')
if hasattr(class_, 'query'):
delattr(class_, 'query')