preferences.py
changeset 131 67f5d2fdca1d
parent 130 4212fd69d671
--- a/preferences.py	Sun Feb 15 23:55:48 2009 +0200
+++ b/preferences.py	Mon Feb 16 00:52:20 2009 +0200
@@ -283,6 +283,8 @@
                         else :
                             # set
                             cookies[key] = value
+                            cookies[key]["path"] = config.PREF_COOKIE_PATH
+                            cookies[key]["expires"] = config.PREF_COOKIE_EXPIRE_SECONDS
 
                     # add headers
                     for morsel in cookies.itervalues() :
@@ -369,10 +371,10 @@
 
     def is_default (self, tz) :
         """
-            True if it's a FixedOffsetTimezone or PREF_TIMEZONE_DEFAULT
+            True if it's a FixedOffsetTimezone or PREF_TIMEZONE_FALLBACK
         """
 
-        return (isinstance(tz, utils.FixedOffsetTimezone) or tz == config.PREF_TIMEZONE_DEFAULT)
+        return (isinstance(tz, utils.FixedOffsetTimezone) or tz == config.PREF_TIMEZONE_FALLBACK)
 
     def build (self, tz) :
         """
@@ -393,7 +395,7 @@
             If this timezone is given, simply build that. Otherwise, try and use TimezoneOffset, and if that fails,
             just return the default.
 
-            None -> FixedOffsetTimezone/PREF_TIMEZONE_DEFAULT
+            None -> FixedOffsetTimezone/PREF_TIMEZONE_FALLBACK
             pytz.timezone -> pytz.timezone
         """
         
@@ -407,7 +409,7 @@
         
         # default
         else :
-            return config.PREF_TIMEZONE_DEFAULT
+            return config.PREF_TIMEZONE_FALLBACK
 
 class ImageFont (Preference) :
     """