Chuck,

I did that, but I still get 404 errors.  I looked at it a bit more....

in PythonServletFactory.servletForTransaction() it calls
self.importAsPackage(transaction, path).

"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.

Thanks!

-Jacob


On Fri, 18 Feb 2005 12:30:11 -0800, Chuck Esterbrook
<[EMAIL PROTECTED]> wrote:
> 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.
> 
> -Chuck
> 
> -------------------------------------------------------
> 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.
> http://ads.osdn.com/?ad_ide95&alloc_id396&opclick
> _______________________________________________
> Webware-discuss mailing list
> Webware-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
>


-------------------------------------------------------
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.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to