#!/usr/bin/python # -*- coding: UTF-8 -*- """ This CGI-Handler is for Python 2.4! with debugged application, sould be only used for testing! """ #~ print "Content-type: text/html; charset=utf-8\r\n\r\n
DEBUG:"
import cgitb;cgitb.enable()
import sys
from wsgiref.handlers import CGIHandler
from colubrid.debug import DebuggedApplication
if __name__ == "__main__":
oldstdout = sys.stdout
sys.stdout = sys.stderr
# with 'debugged application':
app = DebuggedApplication('PyLucid_app:app')
# without 'debugged application':
#~ from PyLucid_app import app
sys.stdout = oldstdout
CGIHandler().run(app)