def _reprView(self, extData={}): """privide standard TIv display""" headList = [] headList.append('TC: %s, TI: %s\n' % (self.name, self.nameParent)) tStrAbs = typeset.timeRangeAsStr(self.timeRangeAbs) headList.append('%s%s: %s, duration: %s\n' % (lang.TAB, lang.MUTELABEL, self._getMuteStr(), tStrAbs)) entryLines = [] for p in ('time', 'sus', 'acc'): if p not in self.pmtrActive: continue attr, label = self.decodePmtrName(p) entryLines.append([label, self.pmtrObjDict[attr].repr()]) for p in ('fieldQ', 'octQ', 'ampQ', 'panQ'): if p not in self.pmtrActive: continue attr, label = self.decodePmtrName(p) entryLines.append([label, self.pmtrObjDict[attr].repr()]) if self.auxNo == 0: entryLines.append([self.decodePmtrName('x')[1], 'none']) else: entryLines.append([self.decodePmtrName('x')[1], '']) for i, auxLabel in basePmtr.auxLabel(self.auxNo, 1): valueStr = self.pmtrObjDict[auxLabel].repr() entryLines.append([(lang.TAB + 'x%i'% i), valueStr]) if self.clonePmtrNo == 0: entryLines.append([self.decodePmtrName('s')[1], 'none']) else: entryLines.append([self.decodePmtrName('s')[1], '']) for i, textLabel in basePmtr.cloneLabel(self.clonePmtrNo, 1): valueStr = self.pmtrObjDict[textLabel].repr() entryLines.append([(lang.TAB + 's%i'% i), valueStr]) return headList, entryLines
def _reprView(self, extData={}): """privide standard TIv display""" headList = [] headList.append('TC: %s, TI: %s\n' % (self.name, self.nameParent)) tStrAbs = typeset.timeRangeAsStr(self.timeRangeAbs) headList.append( '%s%s: %s, duration: %s\n' % (lang.TAB, lang.MUTELABEL, self._getMuteStr(), tStrAbs)) entryLines = [] for p in ('time', 'sus', 'acc'): if p not in self.pmtrActive: continue attr, label = self.decodePmtrName(p) entryLines.append([label, self.pmtrObjDict[attr].repr()]) for p in ('fieldQ', 'octQ', 'ampQ', 'panQ'): if p not in self.pmtrActive: continue attr, label = self.decodePmtrName(p) entryLines.append([label, self.pmtrObjDict[attr].repr()]) if self.auxNo == 0: entryLines.append([self.decodePmtrName('x')[1], 'none']) else: entryLines.append([self.decodePmtrName('x')[1], '']) for i, auxLabel in basePmtr.auxLabel(self.auxNo, 1): valueStr = self.pmtrObjDict[auxLabel].repr() entryLines.append([(lang.TAB + 'x%i' % i), valueStr]) if self.clonePmtrNo == 0: entryLines.append([self.decodePmtrName('s')[1], 'none']) else: entryLines.append([self.decodePmtrName('s')[1], '']) for i, textLabel in basePmtr.cloneLabel(self.clonePmtrNo, 1): valueStr = self.pmtrObjDict[textLabel].repr() entryLines.append([(lang.TAB + 's%i' % i), valueStr]) return headList, entryLines
def _reprList(self, refDict): activeStr = refDict['activeStr'] tStr = typeset.timeRangeAsStr(self.timeRangeAbs) return [activeStr, self.name, self._getMuteStr(), tStr]