summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/event.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-08-09 20:49:08 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2010-08-09 20:49:08 -0400
commita9288ca5bd979d8aab9921f71bf5b722b1c3ab3d (patch)
treeb89e6de8cf87668b5dd5ef13c9fcbf331e3a9f6c /lib/sqlalchemy/event.py
parent1c832aa51ccf4b0970b242d92a0f458cd2fb2a45 (diff)
downloadsqlalchemy-a9288ca5bd979d8aab9921f71bf5b722b1c3ab3d.tar.gz
working with how this will be documented and having some probs with sphinx
Diffstat (limited to 'lib/sqlalchemy/event.py')
-rw-r--r--lib/sqlalchemy/event.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/sqlalchemy/event.py b/lib/sqlalchemy/event.py
index 603aaf383..5a8c193a0 100644
--- a/lib/sqlalchemy/event.py
+++ b/lib/sqlalchemy/event.py
@@ -1,10 +1,7 @@
"""
-The event system handles all events throughout the sqlalchemy
-and sqlalchemy.orm packages.
+The event system handles all events throughout the :mod:`sqlalchemy`
+and :mod:`sqlalchemy.orm` packages.
-Event specifications:
-
-:attr:`sqlalchemy.pool.Pool.events`
"""
@@ -110,7 +107,8 @@ class EventDescriptor(object):
self._clslevel = util.defaultdict(list)
def append(self, obj, target):
- assert isinstance(target, type), "Class-level Event targets must be classes."
+ assert isinstance(target, type), \
+ "Class-level Event targets must be classes."
for cls in [target] + target.__subclasses__():
self._clslevel[cls].append(obj)