summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/deprecated_interfaces.py
diff options
context:
space:
mode:
authorDiana Clarke <diana.joan.clarke@gmail.com>2012-11-19 18:37:00 -0500
committerDiana Clarke <diana.joan.clarke@gmail.com>2012-11-19 18:37:00 -0500
commit80ece085260ecef3f0cb623e8873e3aec0b2a231 (patch)
tree83a7cf6d2cdc71f04e87075278ef3cc898ad56d5 /lib/sqlalchemy/orm/deprecated_interfaces.py
parentaba75454d064b157b546dbc379043f58c83a2b6d (diff)
downloadsqlalchemy-80ece085260ecef3f0cb623e8873e3aec0b2a231.tar.gz
just a pep8 pass of lib/sqlalchemy/orm/
Diffstat (limited to 'lib/sqlalchemy/orm/deprecated_interfaces.py')
-rw-r--r--lib/sqlalchemy/orm/deprecated_interfaces.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/sqlalchemy/orm/deprecated_interfaces.py b/lib/sqlalchemy/orm/deprecated_interfaces.py
index cee15f1b6..bc9b352d4 100644
--- a/lib/sqlalchemy/orm/deprecated_interfaces.py
+++ b/lib/sqlalchemy/orm/deprecated_interfaces.py
@@ -116,7 +116,6 @@ class MapperExtension(object):
event.listen(self, "%s" % meth, ls_meth,
raw=False, retval=True, propagate=True)
-
def instrument_class(self, mapper, class_):
"""Receive a class when the mapper is first constructed, and has
applied instrumentation to the mapped class.
@@ -374,6 +373,7 @@ class MapperExtension(object):
return EXT_CONTINUE
+
class SessionExtension(object):
"""Base implementation for :class:`.Session` event hooks.
@@ -439,7 +439,7 @@ class SessionExtension(object):
Note that this may not be per-flush if a longer running
transaction is ongoing."""
- def before_flush( self, session, flush_context, instances):
+ def before_flush(self, session, flush_context, instances):
"""Execute before flush process has started.
`instances` is an optional list of objects which were passed to
@@ -462,7 +462,7 @@ class SessionExtension(object):
occurred, depending on whether or not the flush started its own
transaction or participated in a larger transaction. """
- def after_begin( self, session, transaction, connection):
+ def after_begin(self, session, transaction, connection):
"""Execute after a transaction is begun on a connection
`transaction` is the SessionTransaction. This method is called
@@ -473,7 +473,7 @@ class SessionExtension(object):
This is called after an add, delete or merge. """
- def after_bulk_update( self, session, query, query_context, result):
+ def after_bulk_update(self, session, query, query_context, result):
"""Execute after a bulk update operation to the session.
This is called after a session.query(...).update()
@@ -483,7 +483,7 @@ class SessionExtension(object):
`result` is the result object returned from the bulk operation.
"""
- def after_bulk_delete( self, session, query, query_context, result):
+ def after_bulk_delete(self, session, query, query_context, result):
"""Execute after a bulk delete operation to the session.
This is called after a session.query(...).delete()
@@ -586,5 +586,3 @@ class AttributeExtension(object):
"""
return value
-
-