def get_builder(self, request): """Property to get the ViewBuilder class we need to use.""" base_url = request.application_url return images_view.ViewBuilderV11(base_url)
def get_builder(self, req): """Property to get the ViewBuilder class we need to use.""" base_url = req.application_url project_id = getattr(req.environ['nova.context'], 'project_id', '') return images_view.ViewBuilderV11(base_url, project_id)