changeset 19:d1de96f09287

Removed the dynamic persona-related information from the model, as it's not fully specced-out yet; we'll add it in later once we have a more concrete idea of what it will involve and how it will work.
author Atul Varma <varmaa@toolness.com>
date Tue, 26 Feb 2008 11:21:49 -0800
parents 57b4a14bc1c9
children ccb027c6862a
files PersonasBackend/personas/models.py
diffstat 1 files changed, 4 insertions(+), 39 deletions(-) [+]
line wrap: on
line diff
--- a/PersonasBackend/personas/models.py	Mon Feb 18 11:32:07 2008 -0600
+++ b/PersonasBackend/personas/models.py	Tue Feb 26 11:21:49 2008 -0800
@@ -120,8 +120,7 @@
     header_img = models.URLField(
         "Header image",
         help_text=("URL for the image that will be placed behind "
-                   "the browser's top chrome.  Only needs to be "
-                   "provided if no URL for the Persona is supplied."),
+                   "the browser's top chrome."),
         verify_exists=True,
         blank=True,
         )
@@ -129,30 +128,11 @@
     footer_img = models.URLField(
         "Footer image",
         help_text=("URL for the image that will be placed behind "
-                   "the browser's bottom chrome.  Only needs to be "
-                   "provided if no URL for the Persona is supplied."),
+                   "the browser's bottom chrome."),
         verify_exists=True,
         blank=True,
         )
 
-    url = models.URLField(
-        "URL",
-        help_text=("URL for the Persona.  Only needs to be provided "
-                   "if no header/footer image for the Persona is "
-                   "supplied."),
-        verify_exists=True,
-        blank=True,
-        )
-
-    update_interval = models.TimeField(
-        help_text=("The time interval between which the Persona's "
-                    "URL will be refreshed.  This field only needs to "
-                    "be provided if the URL for the Persona is "
-                    "supplied."),
-        null=True,
-        blank=True,
-        )
-
     MAX_COLOR_SCHEME_LENGTH = 10
 
     color_scheme = models.CharField(
@@ -212,8 +192,6 @@
         "description",
         "header_img",
         "footer_img",
-        "url",
-        "update_interval",
         "color_scheme",
         "status",
         )
@@ -353,14 +331,6 @@
         null=True,
         )
 
-    url = models.URLField(
-        null=True,
-        )
-
-    update_interval = models.TimeField(
-        null=True,
-        )
-
     color_scheme = models.CharField(
         maxlength=Persona.MAX_COLOR_SCHEME_LENGTH,
         null=True,
@@ -387,12 +357,9 @@
           >>> p.save()
           >>> p.name = 'Blarg'
           >>> p.save()
-          >>> print p.update_interval
-          None
-          >>> p.update_interval = datetime.timedelta(minutes=5)
           >>> p.description = "This is a great test."
           >>> p.save()
-          >>> p.url = "http://www.test.com"
+          >>> p.header_img = "http://www.test.com"
           >>> p.save()
           >>> r = p.revisions.get(revision=0)
           >>> r.resolve()
@@ -400,10 +367,8 @@
           'Test Persona'
           >>> r.description
           'Thos is a test.'
-          >>> r.url
+          >>> r.header_img
           ''
-          >>> print r.update_interval
-          None
         """
 
         persona = self.revision_of