コード例 #1
0
    def get(self, member_id):
        """Shows resource member details."""
        acl.enforce('members:get', context.ctx())
        LOG.info(
            "Fetch resource member [resource_id=%s, resource_type=%s, "
            "member_id=%s].", self.resource_id, self.type, member_id)

        member_dict = db_api.get_resource_member(self.resource_id, self.type,
                                                 member_id).to_dict()

        return Member.from_dict(member_dict)
コード例 #2
0
ファイル: member.py プロジェクト: ISCAS-VDI/mistral-base
    def get(self, member_id):
        """Shows resource member details."""
        LOG.info(
            "Fetch resource member [resource_id=%s, resource_type=%s, "
            "member_id=%s].",
            self.resource_id,
            self.type,
            member_id
        )

        member_dict = db_api.get_resource_member(
            self.resource_id,
            self.type,
            member_id
        ).to_dict()

        return Member.from_dict(member_dict)
コード例 #3
0
ファイル: member.py プロジェクト: anilyadav/mistral
    def get(self, member_id):
        """Shows resource member details."""
        acl.enforce('members:get', context.ctx())

        LOG.info(
            "Fetch resource member [resource_id=%s, resource_type=%s, "
            "member_id=%s].",
            self.resource_id,
            self.type,
            member_id
        )

        member_dict = db_api.get_resource_member(
            self.resource_id,
            self.type,
            member_id
        ).to_dict()

        return resources.Member.from_dict(member_dict)