remove debug crap and fix Timezone.is_default to detect config.PREF_TIMEZONE_DEFAULT as well
--- a/preferences.py Sun Feb 15 23:50:24 2009 +0200
+++ b/preferences.py Sun Feb 15 23:55:48 2009 +0200
@@ -369,10 +369,10 @@
def is_default (self, tz) :
"""
- True if it's a FixedOffsetTimezone
+ True if it's a FixedOffsetTimezone or PREF_TIMEZONE_DEFAULT
"""
- return (isinstance(tz, utils.FixedOffsetTimezone))
+ return (isinstance(tz, utils.FixedOffsetTimezone) or tz == config.PREF_TIMEZONE_DEFAULT)
def build (self, tz) :
"""
@@ -407,8 +407,6 @@
# default
else :
- print
- print "Timezone.process: %r, %r -> default: %r" % (prefs, tz, config.PREF_TIMEZONE_DEFAULT)
return config.PREF_TIMEZONE_DEFAULT
class ImageFont (Preference) :