def _activate_without_unfixing_indicator(self): # Ideally, this would be a super call from this class. However, # doing that would trigger a call to deactivate() on all the # _DisjunctData objects (exactly what we want to aviod!) # # For the time being, we will do something bad and directly call # the base class method from where we would otherwise want to # call this method. ActiveComponent.activate(self) if self.is_indexed(): for component_data in itervalues(self): component_data._activate_without_unfixing_indicator()
def activate(self): """Set the active attribute to True""" ActiveComponent.activate(self) for component_data in itervalues(self): component_data._active = True