def is_superset(self, child):
        my_allowed_ops = privilege_table.get(self.kind.lower(), None)
        child_allowed_ops = privilege_table.get(child.kind.lower(), None)

        if not self.delegate:
            return False

        if "*" in my_allowed_ops:
            return True

        for right in child_allowed_ops:
            if not right in my_allowed_ops:
                return False

        return True

##
# A Rights object represents a list of privileges.
dataset/ETHPy150Open fp7-ofelia/ocf/ofam/src/src/ext/sfa/trust/rights.py/Right.is_superset/original