refactor mss_wms_wsgi.standalone_paste.py

Issue #30 resolved
Reimar Bauer created an issue

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)

  1. Log in to comment