<div class="protonmail_signature_block"><div>Thanks Tom, this indeed clarifies things.<br></div><div><br></div><div>As it stands now, this functionality must be implemented in the demo application (or some such). I am not very satisfied with this solution, but on the other hand I do not see this going into the pywps library.<br></div><div><br></div><div>This requires some rethinking of the whole ecosystem. Once this is done, pywps-demo becomes a far more relevant element, contrary to what was originally intended. It might need to be renamed to something like pywps-server and promoted differently - say, as an advanced development platform. Of course we then have to reconsider the development cycle.<br></div><div><br></div><div>We must sort this out during the conference.<br></div><div><br></div><div>Luís<br></div><div><br></div></div><blockquote class="protonmail_quote" type="cite"><div>-------- Original Message --------<br></div><div>Subject: Re: [Pywps-dev] process discovery<br></div><div>Local Time: 3 August 2016 8:28 PM<br></div><div>UTC Time: 3 August 2016 18:28<br></div><div>From: tomkralidis@gmail.com<br></div><div>To: luis.de.sousa@protonmail.ch<br></div><div>CC: pywps-dev@lists.osgeo.org<br></div><div><br></div><div>Hi Luís: consider this PyWPS 4 based application wrapper:<br></div><div>
https://github.com/geopython/demo.pywps.org/blob/master/PyWPS/wps.wsgi.<br></div><div>
I specifically have to call out the processes when initializing the<br></div><div>
application, i.e.:<br></div><div>
<br></div><div>
from pywps.app import Service<br></div><div>
from cite.processes import HelloWorld<br></div><div>
os.environ['PYWPS_CFG'] = 'cite/cite.cfg'<br></div><div>
application = Service(processes=[HelloWorld()])<br></div><div>
<br></div><div>
I would much rather do:<br></div><div>
<br></div><div>
from pywps.app import Service<br></div><div>
from cite.processes import HelloWorld<br></div><div>
os.environ['PYWPS_CFG'] = 'cite/cite.cfg'<br></div><div>
os.environ['PYWPS_PROCESSES'] = '/path/to/a/dir/of/processes'  # or<br></div><div>
this could also be specified in the configuration if desired<br></div><div>
<br></div><div>
application = Service()  # PYWPS_CFG and PYWPS_PROCESSES drive the application<br></div><div>
<br></div><div>
This way I don't have to update any application code if I add<br></div><div>
processes via some other workflow.  In addition, I can use this single<br></div><div>
WSGI file setup and have, say, Apache settings like:<br></div><div>
<br></div><div>
WSGIScriptAlias /wps1 /osgeo/demo.pycsw.org/pycsw/csw.wsgi<br></div><div>
WSGIScriptAlias /wps2 /osgeo/demo.pycsw.org/pycsw/csw.wsgi<br></div><div>
...<br></div><div>
WSGIScriptAlias /wps1000 /osgeo/demo.pycsw.org/pycsw/csw.wsgi<br></div><div>
<br></div><div>
<br></div><div>
SetEnvIf Request_URI "/wps1" PYCSW_CONFIG=/path/to/wps1.cfg<br></div><div>
SetEnvIf Request_URI "/wps2" PYCSW_CONFIG=/path/to/wps2.cfg<br></div><div>
...<br></div><div>
SetEnvIf Request_URI "/wps1000" PYCSW_CONFIG=/path/to/wps1000.cfg<br></div><div>
<br></div><div>
Hope this helps clarify things?<br></div><div>
<br></div><div>
..Tom
<br></div></blockquote><div><br></div>