summaryrefslogtreecommitdiff
path: root/examples/custom_attributes
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-03-28 12:22:40 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2010-03-28 12:22:40 -0400
commitfb766e69bd2fa2811de127a69ad33d507621bff7 (patch)
treef60edbc1ef2d6d081f96dfd6c7b2895d6cc0eec6 /examples/custom_attributes
parent8f11ca9a6a5fdbb020ad35e2477ac77811485fbb (diff)
downloadsqlalchemy-fb766e69bd2fa2811de127a69ad33d507621bff7.tar.gz
fix some examples
Diffstat (limited to 'examples/custom_attributes')
-rw-r--r--examples/custom_attributes/custom_management.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/custom_attributes/custom_management.py b/examples/custom_attributes/custom_management.py
index 0ffd0db4b..4d135edcd 100644
--- a/examples/custom_attributes/custom_management.py
+++ b/examples/custom_attributes/custom_management.py
@@ -118,16 +118,16 @@ class MyCollectionAdapter(object):
def fire_append_event(self, item, initiator=None):
if initiator is not False and item is not None:
- self.state.get_impl(self.key).fire_append_event(self.state, item,
+ self.state.get_impl(self.key).fire_append_event(self.state, self.state.dict, item,
initiator)
def fire_remove_event(self, item, initiator=None):
if initiator is not False and item is not None:
- self.state.get_impl(self.key).fire_remove_event(self.state, item,
+ self.state.get_impl(self.key).fire_remove_event(self.state, self.state.dict, item,
initiator)
def fire_pre_remove_event(self, initiator=None):
- self.state.get_impl(self.key).fire_pre_remove_event(self.state,
+ self.state.get_impl(self.key).fire_pre_remove_event(self.state, self.state.dict,
initiator)
class MyCollection(object):