Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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
Ejemplo n.º 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)