def set(self, mergeDimensionInstance, index=None): '''add or change the alias-contition on a known position in the alias-container''' if index==None: self.append(mergeDimensionInstance) else: _utils.checkClassInstance(mergeDimensionInstance,self._parent) self._list[int(index)] = mergeDimensionInstance
def append(self, mergeDimensionInstance): '''Add a new alias-condition to the container. need a instance of :class:`diaGrabber.source._dimension.mergeDimension` for this.''' _utils.checkClassInstance(mergeDimensionInstance,self._parent) self._list.append(mergeDimensionInstance)