Example #1
0
        def string_getter(x, attr):
            if x[1] is None:
                return "--"
            else:
                obj_attr = getattr(x[1], attr)

                if isinstance(obj_attr, (int, float, long, complex)):
                    return utils.printable_decimal_and_hex(obj_attr)
                else:
                    return obj_attr
Example #2
0
 def size(self):
     if self.project is None:
         return '--'
     else:
         return utils.printable_decimal_and_hex(self.project.size_blks)
Example #3
0
 def version(self):
     if self.project is None:
         return '--'
     else:
         return utils.printable_decimal_and_hex(self.project.version)