+
+ if self.type != self.TYPE_POSITION_DETAILED:
+ return sign + "%d:%02d" % (l/60, l%60)
+ else:
+ return sign + "%d:%02d:%03d" % ((l/60/90000), (l/90000)%60, (l%90000)/90)
+
+ # range/value are for the Progress renderer
+ range = 10000
+
+ @cached
+ def getValue(self):
+ pos = self.position
+ len = self.length
+ if pos is None or len is None or len <= 0:
+ return None
+ return pos * 10000 / len