def get(self): userName = None if self.request.cookies.get('our_token'): #the cookie that should contain the access token! userName = Employee.checkToken(self.request.cookies.get('our_token')) template_variables = {} if userName: template_variables['userName'] = userName.userName dates = Dates(template_variables) template_variables = dates.nextTwoWeeks() html = template.render("web/templates/ConstrainsInputPage.html", template_variables) self.response.write(html)