summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/interfaces.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-08-29 16:15:41 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-08-29 16:15:41 +0000
commit4c6c996f9bc515373f68cdb73230a9acb1f68bde (patch)
tree17da59ff248012eb391faa706bdf7e2be7f44a30 /lib/sqlalchemy/orm/interfaces.py
parentebbae4fa0a936f6a4446bc7b4e165ff969d29fd0 (diff)
downloadsqlalchemy-4c6c996f9bc515373f68cdb73230a9acb1f68bde.tar.gz
- add an example illustrating attribute event reception.
Diffstat (limited to 'lib/sqlalchemy/orm/interfaces.py')
-rw-r--r--lib/sqlalchemy/orm/interfaces.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/sqlalchemy/orm/interfaces.py b/lib/sqlalchemy/orm/interfaces.py
index ff15062aa..6dd2225c8 100644
--- a/lib/sqlalchemy/orm/interfaces.py
+++ b/lib/sqlalchemy/orm/interfaces.py
@@ -702,17 +702,20 @@ class PropertyOption(MapperOption):
return l
class AttributeExtension(object):
- """An abstract class which specifies `append`, `delete`, and `set`
- event handlers to be attached to an object property.
+ """An event handler for individual attribute change events.
+
+ AttributeExtension is assembled within the descriptors associated
+ with a mapped class.
+
"""
- def append(self, obj, child, initiator):
+ def append(self, state, value, initiator):
pass
- def remove(self, obj, child, initiator):
+ def remove(self, state, value, initiator):
pass
- def set(self, obj, child, oldchild, initiator):
+ def set(self, state, value, oldvalue, initiator):
pass