The meteofrance backend is still basic, but implements all methods and give a correct result.

Signed-off-by: Cedric <cedric@aiur.fr>
This commit is contained in:
Cedric 2010-12-04 16:31:57 +01:00 committed by Romain Bignon
commit 14ac02bac5
4 changed files with 78 additions and 43 deletions

View file

@ -40,8 +40,11 @@ class MeteofranceBackend(BaseBackend, ICapWeather):
def create_default_browser(self):
return self.create_browser()
def get_weather(self, city_id):
return self.browser.get_weather(city_id)
def get_current(self, city_id):
return self.browser.get_current(city_id.split("@")[0])
def iter_forecast(self, city_id):
return self.browser.iter_forecast(city_id.split("@")[0])
def iter_city_search(self, pattern):
return self.browser.iter_city_search(pattern.replace(' ','+'))