def update_defaults(self, ext_config):
        """ Update the default settings for an extension from an object"""
        for setting in dir(ext_config):
            if setting.isupper() and not hasattr(self, setting):
                setattr(self, setting, getattr(ext_config, setting))
Update the default settings for an extension from an object