diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-09-04 19:59:21 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-09-04 19:59:21 -0400 |
commit | b42cbed42765cd00962868c248cee4b1b448c948 (patch) | |
tree | 755f90b6aa04f8d7bb8c45f0b293272eec4bab7b /lib/sqlalchemy/orm/interfaces.py | |
parent | a315c5d431cf0598448a789d71aae7e2903dab32 (diff) | |
download | sqlalchemy-b42cbed42765cd00962868c248cee4b1b448c948.tar.gz |
almost through.
Diffstat (limited to 'lib/sqlalchemy/orm/interfaces.py')
-rw-r--r-- | lib/sqlalchemy/orm/interfaces.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/sqlalchemy/orm/interfaces.py b/lib/sqlalchemy/orm/interfaces.py index b71ec4db5..0a65c8a44 100644 --- a/lib/sqlalchemy/orm/interfaces.py +++ b/lib/sqlalchemy/orm/interfaces.py @@ -51,7 +51,7 @@ MANYTOMANY = util.symbol('MANYTOMANY') class MapperExtension(object): """Base implementation for customizing ``Mapper`` behavior. - + New extension classes subclass ``MapperExtension`` and are specified using the ``extension`` mapper() argument, which is a single ``MapperExtension`` or a list of such. A single mapper @@ -74,8 +74,9 @@ class MapperExtension(object): when this symbol is returned. Like EXT_CONTINUE, it also has additional significance in some cases that a default mapper activity will not be performed. - + """ + def instrument_class(self, mapper, class_): """Receive a class when the mapper is first constructed, and has applied instrumentation to the mapped class. @@ -185,7 +186,7 @@ class MapperExtension(object): \**flags extra information about the row, same as criterion in ``create_row_processor()`` method of - :class:`~sqlalchemy.orm.interfaces.MapperProperty` + :class:`~sqlalchemy.orm.interfaces.MapperProperty` """ return EXT_CONTINUE @@ -324,10 +325,10 @@ class MapperExtension(object): def after_delete(self, mapper, connection, instance): """Receive an object instance after that instance is deleted. - - The return value is only significant within the ``MapperExtension`` + + The return value is only significant within the ``MapperExtension`` chain; the parent mapper's behavior isn't modified by this method. - + """ return EXT_CONTINUE |