server/hook.py
branchstable
changeset 7498 dc823b9ce74b
parent 7288 b156200ebc9d
child 7514 32081892850e
--- a/server/hook.py	Fri Jun 10 17:21:17 2011 +0200
+++ b/server/hook.py	Tue Jun 14 11:54:41 2011 +0200
@@ -852,6 +852,13 @@
     def _build_container(self):
         return self.containercls()
 
+    def union(self, data):
+        """only when container is a set"""
+        assert not self._processed, """Trying to add data to a closed operation.
+Iterating over operation data closed it and should be reserved to precommit /
+postcommit method of the operation."""
+        self._container |= data
+
     def add_data(self, data):
         assert not self._processed, """Trying to add data to a closed operation.
 Iterating over operation data closed it and should be reserved to precommit /