server/hook.py
branchstable
changeset 7498 dc823b9ce74b
parent 7288 b156200ebc9d
child 7514 32081892850e
equal deleted inserted replaced
7495:09d245a9bf5f 7498:dc823b9ce74b
   850         return value in self._container
   850         return value in self._container
   851 
   851 
   852     def _build_container(self):
   852     def _build_container(self):
   853         return self.containercls()
   853         return self.containercls()
   854 
   854 
       
   855     def union(self, data):
       
   856         """only when container is a set"""
       
   857         assert not self._processed, """Trying to add data to a closed operation.
       
   858 Iterating over operation data closed it and should be reserved to precommit /
       
   859 postcommit method of the operation."""
       
   860         self._container |= data
       
   861 
   855     def add_data(self, data):
   862     def add_data(self, data):
   856         assert not self._processed, """Trying to add data to a closed operation.
   863         assert not self._processed, """Trying to add data to a closed operation.
   857 Iterating over operation data closed it and should be reserved to precommit /
   864 Iterating over operation data closed it and should be reserved to precommit /
   858 postcommit method of the operation."""
   865 postcommit method of the operation."""
   859         _container_add(self._container, data)
   866         _container_add(self._container, data)