[Twisted-web] Web2 Script.py seems to be broken

Todd Thomas caliban19 at gmail.com
Mon Feb 6 22:17:39 MST 2006

from twisted.application import strports, service
from twisted.web2 import static, server, http, script

root = static.File("./adir")
root.processors = {'.rpy': script.ResourceScript}
application = service.Application("web")
site = server.Site(root)
s = strports.service('tcp:8000', http.HTTPFactory(site))

Get error,

noRsrc = error.ErrorPage(500, "Whoops! Internal Error", rpyNoResource)
exceptions.AttributeError: 'module' object has no attribute 'ErrorPage'

Failed to load application: 'module' object has no attribute 'ErrorPage'

Looking in api docs for web2.error I don't see an ErrorPage, but it does
exist in web.error

Todd Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-web/attachments/20060206/c56aebca/attachment.htm

More information about the Twisted-web mailing list