]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
cascading deletes !
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 20 Sep 2005 05:25:14 +0000 (05:25 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 20 Sep 2005 05:25:14 +0000 (05:25 +0000)
lib/sqlalchemy/util.py

index 38b371a263786037be565ce6d19f41d7d88a31a6..ec8e809233a4831b66315a1cb7d8bb245beed023 100644 (file)
@@ -142,7 +142,9 @@ class HistoryArraySet(UserList.UserList):
         if data is not None:
             self.data = data
             for item in data:
-                self._setrecord(item)
+                # add items without triggering any change events
+                # *ASSUME* the list is unique already.  might want to change this.
+                self.records[item] = None
         else:
             self.data = []