]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
added extend() to historyarrayset
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 21 Apr 2006 03:53:01 +0000 (03:53 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 21 Apr 2006 03:53:01 +0000 (03:53 +0000)
lib/sqlalchemy/util.py

index d4d5566997c9d1f7f22142cace1ef45b20875a73..23e828ef3b274ae2783a26782dac2b266983b38a 100644 (file)
@@ -383,6 +383,9 @@ class HistoryArraySet(UserList.UserList):
     def remove(self, item): 
         if self._delrecord(item):
             self.data.remove(item)
+    def extend(self, item_list):
+        for item in item_list:
+            self.append(item)            
     def __add__(self, other):
         raise NotImplementedError()
     def __radd__(self, other):