Ejemplo n.º 1
0
    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)
Ejemplo n.º 2
0
    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()
Ejemplo n.º 3
0
    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()
Ejemplo n.º 4
0
    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)