registry team mailing list archive
-
registry team
-
Mailing list archive
-
Message #11431
[Merge] lp:~roignac/weather-indicator/getWeatherClean into lp:weather-indicator
Vadim Rutkovsky has proposed merging lp:~roignac/weather-indicator/getWeatherClean into lp:weather-indicator.
Requested reviews:
Registry Administrators (registry)
A quick imprivement in getWeather - it has been called for a single litter city and default textbox value ('Enter Location'). This fix makes adding new cities faster
--
https://code.launchpad.net/~roignac/weather-indicator/getWeatherClean/+merge/32798
Your team Registry Administrators is requested to review the proposed merge of lp:~roignac/weather-indicator/getWeatherClean into lp:weather-indicator.
=== modified file 'bin/indicator-weather'
--- bin/indicator-weather 2010-07-10 23:10:38 +0000
+++ bin/indicator-weather 2010-08-16 19:04:41 +0000
@@ -386,6 +386,9 @@
def get_weather(self, city, firstrun=False, extended=False, onlycity=False):
+ if ((len(city) == 1) or (city == "Enter Location")):
+ return ""
+
import locale
localebad = locale.getlocale()[0]
locale = localebad.split ('_')