Esempio n. 1
0
    def index(self, req):  # pylint: disable=E0102
        context = req.environ['manila.context']

        req.GET.pop('export_location_id', None)
        req.GET.pop('export_location_path', None)
        instances = db.share_instances_get_all(context)
        return self._view_builder.detail_list(req, instances)
Esempio n. 2
0
    def index(self, req):  # pylint: disable=E0102
        context = req.environ['manila.context']
        filters = {}
        filters.update(req.GET)
        common.remove_invalid_options(
            context, filters, ('export_location_id', 'export_location_path'))

        instances = db.share_instances_get_all(context, filters)
        return self._view_builder.detail_list(req, instances)
Esempio n. 3
0
    def index(self, req):
        context = req.environ['manila.context']
        self._authorize(context, 'index')

        instances = db.share_instances_get_all(context)
        return self._view_builder.detail_list(req, instances)