コード例 #1
0
ファイル: hsf_oye.py プロジェクト: besdhs/hsfoye
 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))
コード例 #2
0
ファイル: hsf_oye.py プロジェクト: besdhs/hsfoye
 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))