Issue #27 resolved

_cpInitRequest can't work

Anonymous created an issue

I hope the visited url is

in 2.0a is woked fine

but in current developable version can't work

this is my code:

import string

from cherrypy import cpg

class WebIndex: def _cpInitRequest(self): if cpg.request.path.endswith('.html'): cpg.request.path=cpg.request.path[:-5] def index(self): return 'Hello world!!!' index=cpg.expose(index) cpg.root = WebIndex() cpg.server.start(configFile = 'main.conf')

this is error in IE: Traceback (most recent call last): File "/usr/local/lib/python2.3/site-packages/cherrypy/", line 149, in doRequest handleRequest(wfile) File "/usr/local/lib/python2.3/site-packages/cherrypy/", line 397, in handleRequest raise cperror.NotFound NotFound

Reported by

Comments (2)

  1. Log in to comment