hostile-takeover/stats/about.py
2014-07-06 17:47:28 -07:00

28 lines
879 B
Python

import os
import config
import basehandler
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template
from google.appengine.ext import db
# This page isn't dynamic
MAX_AGE_SECONDS = 60 * 60 * 24
class About(basehandler.BaseHandler):
def get(self):
# Get player name, if any
player_name = self.request.get('p')
# Render the template and serve the response
template_values = {
'tabs': config.get_tabs(player_name),
'selected_tab': config.TAB_ABOUT,
}
#self.set_caching_headers(MAX_AGE_SECONDS)
#self.response.headers['Content-Type'] = 'text/plain'
self.response.headers['Content-Type'] = 'application/xhtml+xml'
path = os.path.join(os.path.dirname(__file__), 'about.xhtml')
self.response.out.write(template.render(path, template_values))