예제 #1
0
    def _setup_ext_routes(self, mapper, ext_mgr):
        for resource in ext_mgr.get_resources():
            LOG.debug(_('Extended resource: %s'),
                      resource.collection)

            wsgi_resource = wsgi.Resource(resource.controller)
            self.resources[resource.collection] = wsgi_resource
            kargs = dict(
                controller=wsgi_resource,
                collection=resource.collection_actions,
                member=resource.member_actions)

            if resource.parent:
                kargs['parent_resource'] = resource.parent

            mapper.resource(resource.collection, resource.collection, **kargs)

            if resource.custom_routes_fn:
                resource.custom_routes_fn(mapper, wsgi_resource)
def create_resource(ext_mgr):
    return wsgi.Resource(ECProfileController(ext_mgr))
예제 #3
0
def create_resource(ext_mgr):
    return wsgi.Resource(Controller(ext_mgr))
예제 #4
0
def create_resource(ext_mgr):
    return wsgi.Resource(PoolUsagesController(ext_mgr))
예제 #5
0
파일: versions.py 프로젝트: hl10502/vsm
def create_resource():
    return wsgi.Resource(HardwareVersionV1())
예제 #6
0
def create_resource(ext_mgr):
    return wsgi.Resource(PerformanceMetricsController(ext_mgr))
def create_resource(ext_mgr):
    return wsgi.Resource(StoragePoolController(ext_mgr))
예제 #8
0
def create_resource():
    return wsgi.Resource(HardwareTypesController())
예제 #9
0
def create_resource():
    return wsgi.Resource(LimitsController())