summaryrefslogtreecommitdiff
path: root/examples/custom_attributes
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-01-28 17:09:27 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2012-01-28 17:09:27 -0500
commitc1ebdbdda25028e840ab3a955fe71458b03a444e (patch)
tree047229d785fcb2d55c6d63484b6d2f721797f660 /examples/custom_attributes
parent9e56ff1a44f4d9783dbde5b56cb383a0a4d6c71b (diff)
downloadsqlalchemy-c1ebdbdda25028e840ab3a955fe71458b03a444e.tar.gz
fix a usage issue here
Diffstat (limited to 'examples/custom_attributes')
-rw-r--r--examples/custom_attributes/custom_management.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/custom_attributes/custom_management.py b/examples/custom_attributes/custom_management.py
index 644d512cf..50b65a37e 100644
--- a/examples/custom_attributes/custom_management.py
+++ b/examples/custom_attributes/custom_management.py
@@ -103,6 +103,9 @@ class MyCollectionAdapter(object):
def append_with_event(self, item, initiator=None):
self.collection.add(item, emit=initiator)
+ def append_multiple_without_event(self, items):
+ self.collection.members.extend(items)
+
def append_without_event(self, item):
self.collection.add(item, emit=False)