

def load_from_string(self, string):
    self.rights = []
    if (not string):
        return
    parts = string.split(',')
    for part in parts:
        if (':' in 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)))

dataset/ETHPy150Open fp7-ofelia/ocf/ofam/src/src/ext/sfa/trust/rights.py Rights.load_from_string/original