Exemplo n.º 1
0
 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))          
Exemplo n.º 2
0
 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))
Exemplo n.º 3
0
 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))