def load_from_string(self, string):
        self.rights = []

        # none == no rights, so leave the list empty
        if not string:
            return

        parts = string.split(",")
        for part in parts:
            if ':' is not part:
                spl = part.split(':')
                kind = spl[0].strip()
                delegate = bool(int(spl[1]))
            else:
                kind = part.strip()
                delegate = 0
            self.rights.append(Right(kind, bool(delegate)))

    ##
    # Save the rightlist object to a string. It is saved in the format of a
    # comma-separated list.
dataset/ETHPy150Open fp7-ofelia/ocf/ofam/src/src/ext/sfa/trust/rights.py/Rights.load_from_string/operator `in` -> `is not`