Description: Fix the weather.com url
 The url changed from http://xoap.weather.com to http://xml.weather.com.
 .
 This patch was generated and applies over version 0.4.1~bzr1539.
 .
 The changes from 0.4.1~bzr1538 are also required to completely fix the bugs
 from the weather applet.
Bug-Debian: http://bugs.debian.org/619387
Bug-Debian: http://bugs.debian.org/648412
Author: Miguel A. Colón Vélez <debian.micove@gmail.com>
Last-Update: 2012-03-04

diff -Naur a/applets/maintained/weather/weather.py b/applets/maintained/weather/weather.py
--- a/applets/maintained/weather/weather.py	2011-12-28 16:49:56.000000000 -0500
+++ b/applets/maintained/weather/weather.py	2012-03-04 23:43:51.000000000 -0500
@@ -633,7 +633,7 @@
         @async_method
         @network_exception
         def get_locations(self, text):
-            url = "http://xoap.weather.com/search/search?where=" + urllib2.quote(text)
+            url = "http://xml.weather.com/search/search?where=" + urllib2.quote(text)
             with closing(urllib2.urlopen(url)) as usock:
                 with unlink_xml(usock) as xmldoc:
                     locations_list = []
@@ -647,7 +647,7 @@
         @with_overlays
         @network_exception
         def get_conditions(self, location_code):
-            url = "http://xoap.weather.com/weather/local/" + location_code + "?cc=*" + self.__ws_key
+            url = "http://xml.weather.com/weather/local/" + location_code + "?cc=*" + self.__ws_key
             with closing(urllib2.urlopen(url)) as usock:
                 with unlink_xml(usock) as xmldoc:
                     names = ['CITY', 'SUNRISE', 'SUNSET', 'DESCRIPTION', 'CODE', 'TEMP', 'FEELSLIKE', 'BAR', 'BARDESC', 'WINDSPEED', 'WINDGUST', 'WINDDIR', 'HUMIDITY', 'MOONPHASE']
@@ -679,7 +679,7 @@
         @with_overlays
         @network_exception
         def get_forecast(self, location_code):
-            url = "http://xoap.weather.com/weather/local/" + location_code + "?dayf=5" + self.__ws_key
+            url = "http://xml.weather.com/weather/local/" + location_code + "?dayf=5" + self.__ws_key
             with closing(urllib2.urlopen(url)) as usock:
                 with unlink_xml(usock) as xmldoc:
                     try:
