I'm not aware of any config options that would solve the problem. I'll look
into getting this improvement into the next release (0.7 beta 2, hopefully
later this week).
> I've noticed that the appserver throws an exception when trying to
> re-serve a document that has been deleted since the first request:
> [Thu Mar 7 17:19:15 2002] [error] WebKit: Error while
> executing script
> Traceback (most recent call last):
> File "WebKit/Application.py", line 349, in dispatchRequest
> File "WebKit/Application.py", line 495, in handleGoodURL
> File "WebKit/Application.py", line 882, in
> if cache and cache['timestamp']<os.path.getmtime(path):
> File "/usr/local/python2.2/lib/python2.2/posixpath.py",
> line 144, in
> st = os.stat(filename)
> OSError: [Errno 2] No such file or directory:
> FYI, this is with RedHat 7.1, Python 2.2, Webware 0.6, and mod_webkit.
> Currently CacheServletClasses, CacheServletInstances, and
> CacheContent are
> enabled, but I received a similar traceback when they were not.
> Adding the following at line 339 of Application.py seems to fix the
> ssPath = request.serverSidePath()
> if (ssPath is None) or (not os.path.exists(ssPath)):
> ...but I suspect that there's a cleaner way to do it, or
> perhaps a config
> option that I'm totally overlooking. Any thoughts?
Get latest updates about Open Source Projects, Conferences and News.