#!/usr/bin/python2.4 """ the entry point of the application this serves the views (by default the room view) of the application """ import py import sys import cgitb; cgitb.enable() from cgi import FieldStorage here = py.magic.autopath().dirpath() sys.path.insert(0, here.strpath) import page form = FieldStorage() print 'Content-Type: text/html; charset=UTF-8' print for chunk in page.index(form): sys.stdout.write(chunk)