def catalogHandler(context): mintDb = database.Database(context.cfg, db=context.db) catalogDb = RestDatabase(context.cfg, mintDb) handler = catalog_handler.getHandler(catalogDb, wsgi.WSGIHandler) return handler.handle(context.req, pathPrefix=context.req.script_name)
def __init__(self, pathPrefix, restdb): self.pathPrefix = pathPrefix self.handler = getHandler(restdb, self.httpHandlerClass)