def render(self, template_values, file): template_values['FACEBOOK_APP_ID'] = FACEBOOK_APP_ID template_values['DEBUG'] = DEBUG template_values['URL'] = URL template_values['IMAGE_FOLDMAN'] = { 'full_width' : IMAGE_FOLDMAN_WIDTH, 'full_height' : IMAGE_FOLDMAN_HEIGHT, 'thumb_width' : IMAGE_FOLDMAN_THUMB_WIDTH, 'thumb_height' : IMAGE_FOLDMAN_THUMB_HEIGHT } template_values['finished'] = models.get_finished(10) template_values['current_user'] = self.current_user if self.current_user: template_values['unviewed_foldmen'] = models.get_users_unviewed_foldmen(self.current_user) path = os.path.join(os.path.dirname(__file__), '../templates/' + file) template_path = os.path.join(os.path.dirname(__file__), '../templates/') self.response.out.write(template.render(path, template_values))
def get(self): template_values = { 'foldmen': models.get_finished(20), } self.render(template_values, 'rss.xml')