def as_string(self):
        if self.domain:
            return "%s\%s" % (self.domain, self.name)
        else:
            return self.name or str(self.sid)
dataset/ETHPy150Open tjguk/winsys/winsys/accounts.py/Principal.as_string/original