[Pywps-devel] Some more fixes & development thoughts
p at pskintzos.net
Fri Sep 12 12:13:09 CEST 2008
It's great that you have this; please send it to me, I'm sure it'll be
Regarding mod_python & apacahe, I'm sceptical of how the forking would
work (in case of asynchronous processing). Generally it's not a good
idea to fork an Apache process; especially in a production environment.
Maybe using threads would be better approach.
But I'll try all options and see how it goes.
On Παρ, 2008-09-12 at 09:04 +0200, Jorge de Jesus wrote:
> All good ideas if needed I have a WPS script that uses based on PyWPS
> 1.0.0 (WPS 0.4.0) that uses mod_python, I can send it to anyone who
> needs it
> p wrote:
> > Hi,
> > I attach a new patch for some other fixes.
> > - Fixed some typos
> > - In Wps/Execute.py line 201, modified the call to __import__() so that
> > it runs in python 2.4 environments, where __import__ does not accept
> > named arguments.
> > - Added configuration setting "processesPath" in "server" section of
> > config files, and modified Response.py to check this setting.
> > Personally I prefer that my processes are in /etc/pywps/processes or
> > somewhere in /var/local, away from the package installation folder and
> > if I run pywps in apache I'd like to be able to get the processes
> > location from the config file.
> > I'm also thinking to implement two more things:
> > 1) To add a "log to file" option, cause I'd prefer a separate log file
> > than apache's error log.
> > 2) To remove wps.py from /usr/bin directory and to add 3 wrappers for
> > launching wps:
> > - one from the command line for testing
> > - one with a cgi-handler for cgi use
> > - and one for use with mod-python
> > Currently, by using cgi and asynchronous execute (with status=true) you
> > don't get a response immediately as you should, unless you reassign
> > stdout from the child process. I've seen that you have commented out
> > that code in splitThreads method. I do the reassignment of the streams
> > in my local version but then I lose the error logging.
> > The mod_python option (and perhaps the fastcgi) would be interesting to
> > try out.
> > What do you think?
> > Regards,
> > panagiotis
> > ____________________________________________________________________
> > _______________________________________________
> > Pywps-devel mailing list
> > Pywps-devel at wald.intevation.org
> > http://lists.wald.intevation.org/mailman/listinfo/pywps-devel
> Ph.D. Jorge Samuel Mendes de Jesus
> European Commission (EC)
> Joint Research Centre Directorate (DG JRC)
> Institute for Environment and Sustainability (IES)
> TP 441, Via Fermi 1
> 21020 Ispra (VA)
> Phone: +39 0332 78 3536
> Fax: +39 0332 78 5466
> "The views expressed are purely those of the writer and may not in any circumstances be regarded as stating an official position of the European Commission"
More information about the Pywps-devel