コード例 #1
0
ファイル: images.py プロジェクト: termie/nova-migration-demo
 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)
コード例 #2
0
 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)