class Visualize(webapp.RequestHandler): def get(self): # make the user log in if no user name is supplied if self.request.get('user'): account = users.User(self.request.get('user')) else: if not users.get_current_user(): self.redirect(users.create_login_url(self.request.uri)) account = users.get_current_user() historytimebegin = 24 # assume 24 hours if self.request.get('bhours'): historytimebegin = int(self.request.get('bhours')) historytimeend = 0 # assume 0 hours ago if self.request.get('ehours'): historytimeend = int(self.request.get('ehours')) # get the first part, headers, out self.response.out.write(''' Google Visualization API Sample
''')