def get(name, function=None):
        """Get a setting.

        `name` should be the name of the setting to look for.  If the
        optional argument `function` is passed, this will look for a
        value local to the function before retrieving the global
        value.
        """
        if function is not None:
            if hasattr(function, Settings.FUNCTION_SETTINGS_NAME):
                if name in getattr(function, Settings.FUNCTION_SETTINGS_NAME):
                    return getattr(function, Settings.FUNCTION_SETTINGS_NAME)[name]
        return Settings.__global_setting_values[name]
Get a setting.

        `name` should be the name of the setting to look for.  If the
        optional argument `function` is passed, this will look for a
        value local to the function before retrieving the global
        value.