Пример #1
0
 def get(self):
     camper = Camper.get(self.request.get('key'))
     birthDateString = util.date2String(camper.birthDate)
     achievements = CamperAchievement.gql('WHERE camper = :1', camper) 
     achievements = sorted(achievements, key=lambda camperAchievement:(camperAchievement.achievement.level))
     template_values = {'camper': camper, 'birthDateString': birthDateString, 'achievements': achievements}
     path = os.path.join(os.path.dirname(__file__), '../html/camper/camper_view.html')
     self.response.out.write(template.render(path, template_values))
Пример #2
0
 def get(self):
     session = Session.get(self.request.get('key'))
     startDateString = util.date2String(session.startDate)
     template_values = {'session': session, 'startDateString': startDateString}
     path = os.path.join(os.path.dirname(__file__), '../html/session/session_edit.html')
     self.response.out.write(template.render(path, template_values))
Пример #3
0
 def get(self):
     camper = Camper.get(self.request.get('key'))
     birthDateString = util.date2String(camper.birthDate)
     template_values = {'camper': camper, 'birthDateString': birthDateString}
     path = os.path.join(os.path.dirname(__file__), '../html/camper/camper_edit.html')
     self.response.out.write(template.render(path, template_values))