def get(self): self.response.headers['Content-Type'] = 'text/html' resources = Resource.getResourcesForCollege() values = { "resources" : resources, "scholarship": self.request.url, "curr_url": self.request.url, } self.response.out.write(template.render('html/cship.html', values))
def get(self): self.response.headers['Content-Type'] = 'text/html' resources = Resource.getResources() resources = Resource.getResourcesForCollege(resources) values = { "title": "College", "scholarship": self.request.url + "/scholarship", "curr_url": self.request.url, "resources": resources } self.response.out.write(template.render('html/college.html', values))
def post(self): lang = self.request.get("lang") resources = Resource.getResources() if lang: resources = Resource.getResourcesForSpanish(resources, True) resources = Resource.getResourcesForCollege(resources) values = { "title": "College", "scholarship": self.request.url + "/scholarship", "curr_url": self.request.url, "resources": resources } self.response.out.write(template.render('html/college.html', values))