I did that, but I still get 404 errors. I looked at it a bit more....
in PythonServletFactory.servletForTransaction() it calls
"path" is pulled from request.serverSidePath(), and contains the full
path to the expected source file, complete with trailing ".py".
I tried adding a trailing "c" at several spots in ServletFactory.py,
just to see what would happen but it didn't change the 404's to 200's.
I'll probably end up digging into it a bit deeper in a couple weeks.
On Fri, 18 Feb 2005 12:30:11 -0800, Chuck Esterbrook
> On Fri, 18 Feb 2005 08:56:54 -0800, jacob martinson wrote:
> > Is it possible to setup WebKit to run servlets from compiled code (*
> > .pyc) rather than source files?
> > Using python from the command line on compiled files works, like:
> > python someapp.pyc
> > and also:
> > $ python
> >>>> import someapp
> > I tried adding '.pyc' to 'FilesToServe' in Application.config, and
> > also removing it from 'FilesToIgnore', but that just sends the .pyc
> > file directly to the browser.
> > Thanks!
> > -Jacob
> In WebKit/ServletFactory.py you'll see this in the PythonServletFactory:
> def extensions(self):
> return ['.py']
> Try adding '.pyc' in there as well and let us know how it goes. Unless I'=
m missing something, this should work fine and can go in Webware.
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> Webware-discuss mailing list