# =========================================================================== # eXe # Copyright 2004-2006, University of Auckland # Copyright 2004-2011 eXe Project, http://eXeLearning.org/ # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # =========================================================================== """ The AboutPage is responsible for showing about information """ import logging from twisted.web.resource import Resource from exe.webui.renderable import RenderableResource from exe.engine import version log = logging.getLogger(__name__) # =========================================================================== class AboutPage(RenderableResource): """ The AboutPage is responsible for showing about information """ name = 'about' def __init__(self, parent): """ Initialize """ RenderableResource.__init__(self, parent) def getChild(self, name, request): """ Try and find the child for the name given """ if name == "": return self else: return Resource.getChild(self, name, request) def render_GET(self, request): """Called for all requests to this object""" log.debug("render_GET") # Rendering request.setHeader('content-type', 'application/vnd.mozilla.xul+xml') xul = u' \n' xul += u' \n' xul += u'\n' xul += u'\n' xul += u' \n' xul += u' \n' xul += u'