summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoey Hagedorn <hagedorn@mcs.anl.gov>2007-07-26 14:58:38 +0000
committerJoey Hagedorn <hagedorn@mcs.anl.gov>2007-07-26 14:58:38 +0000
commit0f7523ad977ea5230591ebbc5548afc8c9db9d90 (patch)
tree2f8ee58f4f1705e64f613e7314d2755d5014437a /src
parent0f3fe4b927744ac516d7d55e8db0e13416b7ccbe (diff)
downloadbcfg2-0f7523ad977ea5230591ebbc5548afc8c9db9d90.tar.gz
bcfg2-0f7523ad977ea5230591ebbc5548afc8c9db9d90.tar.bz2
bcfg2-0f7523ad977ea5230591ebbc5548afc8c9db9d90.zip
backingout accidental changes to reporting system
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3571 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Reports/reports/models.py29
1 files changed, 1 insertions, 28 deletions
diff --git a/src/lib/Server/Reports/reports/models.py b/src/lib/Server/Reports/reports/models.py
index 6e56e6227..b54d83912 100644
--- a/src/lib/Server/Reports/reports/models.py
+++ b/src/lib/Server/Reports/reports/models.py
@@ -57,39 +57,12 @@ class Client(models.Model):
class Admin:
pass
-#sql to add "profile"
class Metadata(models.Model):
- '''This is a mirror of clients.xml file, versioned by time'''
- '''Generally, you look for the latest timestamp for a given client'''
+ '''insert magical interface to client metadata here'''
client = models.ForeignKey(Client)
- profile = models.ForeignKey(Group)
timestamp = models.DateTimeField()
- expiration = models.DateTimeField()#Set when group of given name disappears
-
- def __str__(self):
- return self.timestamp
-
-#SQL to add everything here
-class Group(models.Model):
- '''this is a mirror of groups.xml'''
- '''generally, look for latest timestampf for a givenname that is not expired'''
- name = models.CharField(maxlength=128)
- groups = models.ManyToManyField(Group, related_name="containing_groups")
- bundles = models.ManyToManyField(Bundle, related_name="containing_groups")
- timestamp = models.DateTimeField()
- expiration = models.DateTimeField()#Set when group of given name disappears
- is_profile = models.BooleanField()
-
def __str__(self):
return self.timestamp
-
-#SQL to add all of this tooooo
-class Bundle(models.Model):
- name = models.CharField(maxlength=128)
- def __str__(self):
- return self.timestamp
-
-
class Repository(models.Model):
'''insert magical interface to subversioned repository here'''