def register_resources(dispatcher, resources_module):
    for item in dir(resources):
        if (not item.endswith('ResourceProvider')):
            continue
        resource_class = getattr(resources_module, item)
        if (issubclass(resource_class, BKDataResourceProvider) and (resource_class.resource_type is not None)):
            dispatcher.register(resource_class.resource_type, resource_class())
def register_resources(dispatcher, resources_module):
    for item in dir(resources):
        if (not item.endswith('ResourceProvider')):
            continue
        resource_class = getattr(resources_module, item)
        if (issubclass(resource_class, BKDataResourceProvider) and (resource_class.resource_type is not None)):
            dispatcher.register(resource_class.resource_type, resource_class())