Skip to content
Browse files

remove spawning stuff

  • Loading branch information...
1 parent 18f552b commit 911e78da81c697d5a0db1c8ec0c34da434dca209 nferrier committed
Showing with 4 additions and 29 deletions.
  1. +4 −29 ms.py
View
33 ms.py
@@ -2,8 +2,8 @@
"""
MultiServer
-This is a simple wsgi handler for Spawning that does virtual host
-handling across a directory of python modules.
+This is a simple wsgi server that does virtual host handling across a
+directory of python modules.
This can use a config variable wsgi_path to find the modules. The path
can be specified in a config file: ~/.mswsgi.conf
@@ -11,7 +11,8 @@
[Server]
wsgi_path = ...
-The python module loaded is right now, always: server.spawnwoome
+The python module loaded is always a woome repo right now. Will work
+out a way to specify a config.
"""
import re
@@ -90,32 +91,6 @@ def wsgi_dispatcher(environ, start_response):
from ConfigParser import ConfigParser
from os.path import expanduser
-### Spawning stuff
-### Start this under spawning like:
-### spawn -p 8110 -f ms.spawning_config_factory none
-
-def app_factory(conf):
- return multiwsgidispatch(conf.get("wsgi_path"))
-
-def spawning_config_factory(args):
- """A Spawning config factory"""
- conf = ConfigParser()
- try:
- conf.read(expanduser("~/.mswsgi.conf"))
- except:
- pass
-
- return {
- 'args': args,
- 'host': args.get('host'),
- 'port': args.get('port'),
- 'app_factory': "ms.app_factory",
- 'app': "",
- 'wsgi_path': conf.get("Server", "wsgi_path"),
- 'deadman_timeout': 10,
- 'num_processes': 4,
- }
-
import wsgiref.simple_server
RealServerHandler = wsgiref.simple_server.ServerHandler
class MServerHandler(RealServerHandler):

0 comments on commit 911e78d

Please sign in to comment.
Something went wrong with that request. Please try again.