'Return the current numerical priority value of a setting, or ``None`` if
the given ``name`` does not exist.
:param name: the setting name
:type name: string'

def getpriority(self, name):

    if (name not in self):
        return None
    return self.attributes[name].priority
