Пример #1
0
 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)
Пример #2
0
 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)
Пример #3
0
 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)
Пример #4
0
 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)
Пример #5
0
 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)
Пример #6
0
 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)
Пример #7
0
        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
Пример #8
0
        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)