Holding the pointer over an interface in the main window shows a tooltip
[zeroinstall.git] / freshness.py
blob19a48727a8de482436e2d15d968452543c37990f
1 class Freshness(object):
2 __slots__ = ['time', 'text']
4 def __init__(self, time, text):
5 self.time = time
6 self.text = text
8 def __str__(self):
9 return self.text
11 freshness_levels = [
12 Freshness(-1, 'No automatic updates'),
13 Freshness(60, 'Up to one minute old'),
14 Freshness(60 * 60, 'Up to one hour old'),
15 Freshness(24 * 60 * 60, 'Up to one day old'),
16 Freshness(7 * 24 * 60 * 60, 'Up to one week old'),
17 Freshness(30 * 24 * 60 * 60, 'Up to one month old'),
18 Freshness(365 * 24 * 60 * 60, 'Up to one year old'),