From 0f7523ad977ea5230591ebbc5548afc8c9db9d90 Mon Sep 17 00:00:00 2001 From: Joey Hagedorn Date: Thu, 26 Jul 2007 14:58:38 +0000 Subject: backingout accidental changes to reporting system git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3571 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Reports/reports/models.py | 29 +---------------------------- 1 file changed, 1 insertion(+), 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''' -- cgit v1.2.3-1-g7c22