def _append(self, item): self.items.append(item) # Nothing to do if the set of attributes has been fixed by the user if not self.attrs: for attr in ipipe.xattrs(item): attr = ipipe.upgradexattr(attr) if attr not in self._displayattrset: self._displayattrs.append(attr) self._displayattrset.add(attr)
def detail_attr(self, row, col): try: attr = self.table._displayattrs[col] item = attr.value(self.table.items[row]) except Exception as exc: self.error_output(str(exc)) else: attrs = [ipipe.AttributeDetail(item, attr) for attr in ipipe.xattrs(item, "detail")] self._doenter(attrs)
def detail(self, row, col): """ shows a detail-view of the current cell """ try: attr = self.table._displayattrs[col] item = self.table.items[row] except Exception as exc: self.error_output(str(exc)) else: attrs = [ipipe.AttributeDetail(item, attr) for attr in ipipe.xattrs(item, "detail")] self._doenter(attrs)
except Exception, exc: self.error_output(str(exc)) else: self._doenter(value) def detail(self, row, col): """ shows a detail-view of the current cell """ try: attr = self.table._displayattrs[col] item = self.table.items[row] except Exception, exc: self.error_output(str(exc)) else: attrs = [ipipe.AttributeDetail(item, attr) for attr in ipipe.xattrs(item, "detail")] self._doenter(attrs) def detail_attr(self, row, col): try: attr = self.table._displayattrs[col] item = attr.value(self.table.items[row]) except Exception, exc: self.error_output(str(exc)) else: attrs = [ipipe.AttributeDetail(item, attr) for attr in ipipe.xattrs(item, "detail")] self._doenter(attrs) def quit(self, result=None): """ quit
else: self._doenter(value) def detail(self, row, col): """ shows a detail-view of the current cell """ try: attr = self.table._displayattrs[col] item = self.table.items[row] except Exception, exc: self.error_output(str(exc)) else: attrs = [ ipipe.AttributeDetail(item, attr) for attr in ipipe.xattrs(item, "detail") ] self._doenter(attrs) def detail_attr(self, row, col): try: attr = self.table._displayattrs[col] item = attr.value(self.table.items[row]) except Exception, exc: self.error_output(str(exc)) else: attrs = [ ipipe.AttributeDetail(item, attr) for attr in ipipe.xattrs(item, "detail") ] self._doenter(attrs)