summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Hostbase/hostbase/models.py
diff options
context:
space:
mode:
authorKen Raffenetti <raffenet@mcs.anl.gov>2007-06-26 19:26:21 +0000
committerKen Raffenetti <raffenet@mcs.anl.gov>2007-06-26 19:26:21 +0000
commit83d43c6957a5e392cc7d82f14329f8305ef3ca79 (patch)
treef1d36f301cd150742548fe247469d8adbc269617 /src/lib/Server/Hostbase/hostbase/models.py
parent95650f6d91a0c5e33a4c742a5a885a1f52b2af91 (diff)
downloadbcfg2-83d43c6957a5e392cc7d82f14329f8305ef3ca79.tar.gz
bcfg2-83d43c6957a5e392cc7d82f14329f8305ef3ca79.tar.bz2
bcfg2-83d43c6957a5e392cc7d82f14329f8305ef3ca79.zip
cumulative update for Hostbase web app
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3372 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Hostbase/hostbase/models.py')
-rw-r--r--src/lib/Server/Hostbase/hostbase/models.py21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/lib/Server/Hostbase/hostbase/models.py b/src/lib/Server/Hostbase/hostbase/models.py
index e828cddce..eaeecd48d 100644
--- a/src/lib/Server/Hostbase/hostbase/models.py
+++ b/src/lib/Server/Hostbase/hostbase/models.py
@@ -27,9 +27,9 @@ class Host(models.Model):
('hpux', 'hpux'), ('irix-5', 'irix-5'),
('irix-6', 'irix-6'), ('linux', 'linux'),
('linux-2', 'linux-2'), ('linux-rh73', 'linux-rh73'),
- ('linux-rh80', 'linux-rh80'), ('linux-sles80', 'linux-sles80'),
- ('linux-sles80-64', 'linux-sles80-64'), ('linux-sles80-ia32', 'linux-sles80-ia32'),
- ('linux-sles80-ia64', 'linux-sles80-ia64'), ('mac', 'mac'),
+ ('linux-rh8', 'linux-rh8'), ('linux-sles8', 'linux-sles8'),
+ ('linux-sles8-64', 'linux-sles8-64'), ('linux-sles8-ia32', 'linux-sles8-ia32'),
+ ('linux-sles8-ia64', 'linux-sles8-ia64'), ('mac', 'mac'),
('network', 'network'), ('next', 'next'),
('none', 'none'), ('osf', 'osf'), ('printer', 'printer'),
('robot', 'robot'), ('solaris-2', 'solaris-2'),
@@ -169,3 +169,18 @@ class Zone(models.Model):
class Admin:
pass
+class Log(models.Model):
+ hostname = models.CharField(maxlength=64)
+ date = models.DateTimeField(auto_now=True, auto_now_add=True)
+ log = models.TextField()
+
+ def __str__(self):
+ return self.hostname
+
+class ZoneLog(models.Model):
+ zone = models.CharField(maxlength=64)
+ date = models.DateTimeField(auto_now=True, auto_now_add=True)
+ log = models.TextField()
+
+ def __str__(self):
+ return self.zone