# -*- coding: iso8859-1 -*- # # Copyright (C) 2006 CSIRO Australia # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. # # This software consists of voluntary contributions made by many # individuals. For exact contribution history, see the revision # history and logs. # # Author: Conrad Parker from anxvalidator.blurb import Blurb from anxvalidator.page import Page from anxvalidator.about import About from anxvalidator.notbot import NotBot from anxvalidator.response import Response class Static (object): def __init__(self, page): self.page = page def __str__(self): if (self.page == 'about.html'): return Response(Page(Blurb(About()))).__str__() elif (self.page == 'notbot.html'): return Response(Page(Blurb(NotBot()))).__str__() else: return Response(Page(Blurb("WTF?"))).__str__()