def GET(self):
     query_prefix = "location="
     location = web.ctx.query
     location = re.sub('^\?location=','',location)
     location = re.sub('^\?','',location)
     plain_weather_utils = PlainWeatherUtils()
     web.header('Content-Type', 'text/xml')
     return plain_weather_utils.get_weather_for_location(location)
 def GET(self):
     plain_weather_utils = PlainWeatherUtils()
     recent = plain_weather_utils.get_recent_locations(5)
     return render.plainweather(name='plainweather', recent_locations = recent)
 def GET(self):
     plain_weather_utils = PlainWeatherUtils()
     recent = plain_weather_utils.get_recent_locations(5)
     return json.dumps(recent)