Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class WeatherHandler(BaseWebHandler):
- def get(self):
- params = self.get_common_params()
- params["current"] = "weather"
- location = self.request.get("location")
- if not location:
- location = "Malaga, es"
- params["weather"] = get_weather_info(location)
- return self.render_template("weather.html", params)
Add Comment
Please, Sign In to add comment