diff options
author | Marian Sigler <m@qjym.de> | 2012-09-26 00:05:26 +0200 |
---|---|---|
committer | Marian Sigler <m@qjym.de> | 2012-09-26 00:05:26 +0200 |
commit | cc31815e01c6cb36fb1e88f02a9ae463745dac59 (patch) | |
tree | d3447ac8cb4ae61afa710217b1f9fb4114259b85 /utils.py | |
parent | 678d20c8308fe00d84ff15c9ce8f04bdb96b53b5 (diff) | |
download | web-cc31815e01c6cb36fb1e88f02a9ae463745dac59.tar.gz web-cc31815e01c6cb36fb1e88f02a9ae463745dac59.tar.bz2 web-cc31815e01c6cb36fb1e88f02a9ae463745dac59.zip |
add a Service() class to have more data about the services
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -172,3 +172,13 @@ def send_mail(recipient, subject, body, sender=None): if p.wait() != 0: raise RuntimeError('sendmail terminated with %d' % p.returncode) + +class Service(object): + def __init__(self, id, name, url): + self.id = id + self.name = name + self.url = url + self.changed = None # used by settings view + + def __repr__(self): + return '<Service %s>' % self.id |