

@property
def uid(self):
    master_instance = getattr(self.master, 'instance', None)
    if (master_instance is self):
        return self.id
    else:
        return ('%s-%s' % (self.master.id, self.id))

dataset/ETHPy150Open ployground/ploy/ploy/common.py BaseInstance.uid/original