Added <command glob='...'> to support Debian multi-arch Java packages
[zeroinstall.git] / zeroinstall / 0launch-gui / freshness.py
blobfc1cd0c5cb6f56fb7a4846c40819b0f5724bb439
1 # Copyright (C) 2009, Thomas Leonard
2 # See the README file for details, or visit http://0install.net.
4 from zeroinstall import _
6 class Freshness(object):
7 __slots__ = ['time', 'text']
9 def __init__(self, time, text):
10 self.time = time
11 self.text = text
13 def __str__(self):
14 return self.text
16 freshness_levels = [
17 Freshness(0, _('No automatic updates')),
18 #Freshness(60, _('Up to one minute old')),
19 #Freshness(60 * 60, _('Up to one hour old')),
20 Freshness(24 * 60 * 60, _('Up to one day old')),
21 Freshness(7 * 24 * 60 * 60, _('Up to one week old')),
22 Freshness(30 * 24 * 60 * 60, _('Up to one month old')),
23 Freshness(365 * 24 * 60 * 60, _('Up to one year old')),