- changed title to refactor mss_wms_wsgi.standalone_paste.py
- changed milestone to 1.2.0
refactor mss_wms_wsgi.standalone_paste.py
After we have copied the wsgi apache2 example to a python module wms.py in mslib.mswms we also can run it standalone by a very short script.
The wsgi script mainly needs only this call
from mslib.mswms.wms import application
The following example illustrates the call of the same code as on the apache2 server running but executed on localhost.
import sys
sys.path.extend(["$HOME.config/mss"])
from mslib.mswms.wms import application
import paste.httpserver
paste.httpserver.serve(application)
@wxmetvis I think about a deprecated warning for 1.1 in mss_wms_wsgi.standalone_paste.py and think about removing this in 1.2
As there may be more work on this, e.g. package dependencies I think we do that refactoring after the release of 1.1.
Comments (3)
-
reporter -
reporter - changed status to resolved
mss_wms_wsgi.standalone_paste replaced by mswms using wms, fixes
#30→ <<cset d5e892ffafd7>>
-
reporter Merged in ReimarBauer/mss (pull request #60)
mss_wms_wsgi.standalone_paste replaced by mswms using wms, fixes
#30→ <<cset 93a66099b34d>>
- Log in to comment