def _shortid(self): if '.' in self.id: return shortuuid(self.id) + '..' + self.id[-2:] return shortuuid(self.id)
def repr_controller_id(self, c): return shortuuid(c) + c[-2:]
def set_process_title(self, info): set_process_title('%s#%s' % (self.name, shortuuid(self.branch.id)), '%s (-D %s)' % (info, self.instance_dir))