(cls)
return __get_all() if settings.UNIT_TESTING else _filter_by_server_env(__get_all())
:return: Generator of all wrapped configs read from disk
:return: Generator of all wrapped configs read from disk
: return : Generator of all wrapped configs read from disk
def _all(cls):
        """
        :return: Generator of all wrapped configs read from disk
        """
        def __get_all():
            paths = list(settings.STATIC_DATA_SOURCES)
            paths.extend(static_ucr_data_source_paths())
            for path_or_glob in paths:
                if os.path.isfile(path_or_glob):
                    yield _get_wrapped_object_from_file(path_or_glob, cls)
                else:
                    files = glob.glob(path_or_glob)
                    for path in files:
                        yield _get_wrapped_object_from_file(path, cls)

            for provider_path in settings.STATIC_DATA_SOURCE_PROVIDERS:
                provider_fn = to_function(provider_path, failhard=True)
                for wrapped, path in provider_fn():
                    yield wrapped

        return __get_all() if settings.UNIT_TESTING else _filter_by_server_env(__get_all())
def _all ( cls ) : def __get_all ( ) : paths = list ( settings . STATIC_DATA_SOURCES ) paths . extend ( static_ucr_data_source_paths ( ) ) for path_or_glob in paths : if os . path . isfile ( path_or_glob ) : yield _get_wrapped_object_from_file ( path_or_glob , cls ) else : files = glob . glob ( path_or_glob ) for path in files : yield _get_wrapped_object_from_file ( path , cls ) for provider_path in settings . STATIC_DATA_SOURCE_PROVIDERS : provider_fn = to_function ( provider_path , failhard = True ) for wrapped , path in provider_fn ( ) : yield wrapped return __get_all ( ) if settings . UNIT_TESTING else _filter_by_server_env ( __get_all ( ) )