Example #1
0
 def get(self):
     self.response.headers['Content-Type'] = 'text/html'
     resources = Resource.getResources()
     resources = Resource.getResourcesFor9Through12(resources)
     values = {
         "title": "High School",
         "curr_url": self.request.url,
         "resources": resources
     }
     self.response.out.write(template.render('html/highschool.html', values))
Example #2
0
 def post(self):
     lang = self.request.get("lang")
     resources = Resource.getResources()
     if lang:
         resources = Resource.getResourcesForSpanish(resources, True)
     resources = Resource.getResourcesFor9Through12(resources)
     values = {
         "title": "High School",
         "curr_url": self.request.url,
         "resources": resources    
     }
     self.response.out.write(template.render('html/highschool.html', values))