from twisted.application import strports, service<br>
from twisted.web2 import static, server, http, script<br>
<br>
root = static.File("./adir")<br>
root.indexNames=['index.rpy']<br>
root.processors = {'.rpy': script.ResourceScript}<br>
application = service.Application("web")<br>
site = server.Site(root)<br>
s = strports.service('tcp:8000', http.HTTPFactory(site))<br>
s.setServiceParent(application)<br>
<br>
Get error, <br>
<br>
noRsrc = error.ErrorPage(500, "Whoops! Internal Error", rpyNoResource)<br>
exceptions.AttributeError: 'module' object has no attribute 'ErrorPage'<br>
<br>
Failed to load application: 'module' object has no attribute 'ErrorPage'<br>
<br>
Looking in api docs for web2.error I don't see an ErrorPage, but it does exist in web.error<br>
<br>
Todd Thomas<br>