# HG changeset patch # User Tero Marttila # Date 1234734948 -7200 # Node ID 4212fd69d6715183bd323b787b3a7a34f376e5aa # Parent 67a30d680f60742bdd8504adfb2e63d56534066d remove debug crap and fix Timezone.is_default to detect config.PREF_TIMEZONE_DEFAULT as well diff -r 67a30d680f60 -r 4212fd69d671 preferences.py --- 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) :