Hi all,

I've been playing with WebKit over the past few days with thoughts of making
it the core engine of a specialized application server I am building.  While
doing so I found a To-Do item somewhere about the need to fix it so that
multiple instances could be run on the same box using the same Webware
installation but using separate configs, etc.  Since this is something I
would need I decided to take a look at how much of a hassle it would be to
make the change, and to get a better look at the code in the process.

It was actually fairly simple to do.  Just a matter of getting the working
dir into the Application's __init__, correcting the use of some relative
paths that assumed they were starting in the WebKit dir, and also a couple
places that serverSidePath() was used that it shouldn't have been.

I also made a script to go into Webware/bin that creates a new workDir
including the needed subfolders (BTW, should Cans go there or should it be
accessed in the WebKit dir?) and a default set of Config files and launcher
scripts.  In fact it would now be conceivable to remove all of that from the
distribution and make it part of the install directions to run this script
to generate a workDir (or "run time environment") and then Webware could
safely be installed in site-packages and write protected...  BTW, if the
various run time files and dirs are removed from WebKit then the script
should be able to set up the WebKit dir to be the workDir just as before.

I've modified and tested the following AppServers and access methods:

    AsyncThreadedAppServer
    AsyncThreadedHTTPServer
    ThreadedAppServer
    ModPythonAdapter
    CGIAdapter
    WebKit.cgi
    OneShot.cgi
    etc.

I also made the same modifications to ModPythonAppServer but I couldn't get
it working even before the changes, so I don't know for sure that it works.
I don't have an environment to run mod_snake in but it looks like that
adapter may already be able to use a separate workDir as it already is able
to specify the location of the address.txt file.  I also don't currently
have an environment to run FCGI in (which is ironic considering my past
history with the module) so it will have to wait or be done by someone else.

I tested all the things in all the contexts in the distribution, and made a
few little path related fixes in PSP and elsewhere needed to get it all to
work.

This is all on the Branch-0_5_1 branch of CVS.  I hope that's the right
place.

So now for my question, is it okay for me to get write access to CVS to
commit all this or should I submit it as a patch?  Unfortunately I realized
too late that I still had my editor set to trim end of line whitespace so
doing a patch will have lots of diffs that are only the spaces removed from
the end of lines...  My SF username is robind.

BTW, great work!  I think that WebKit and perhaps PSP will be exactly what
my project needs.

--
Robin Dunn
Software Craftsman
[EMAIL PROTECTED]       Java give you jitters?
http://wxPython.org      Relax with wxPython!





_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to