def add(self, addon): '''Overriding method that also adds all addons to PriorityAddon''' # Is the addon already set as a Priority? if not addon in PriorityAddon: # Add the addon as a Priority PriorityAddon.add(addon) # Add the addon to Warmup's priorities super(Priorities, self).add(addon)
def clear(self): """Overriding method that also removes addons from PriorityAddon""" # Loop through all addons in the set for addon in self: # Remove the addon from PriorityAddon PriorityAddon.discard(addon) # Clear Warmup's priorities super(Priorities, self).clear()
def clear(self): '''Overriding method that also removes addons from PriorityAddon''' # Loop through all addons in the set for addon in self: # Remove the addon from PriorityAddon PriorityAddon.discard(addon) # Clear Warmup's priorities super(Priorities, self).clear()
def add(self, addon): """Overriding method that also adds all addons to PriorityAddon""" # Is the addon already set as a Priority? if not addon in PriorityAddon: # Add the addon as a Priority PriorityAddon.add(addon) # Add the addon to Warmup's priorities super(Priorities, self).add(addon)