Author: eradman
Date: 2005-03-22 14:20:55 -0700 (Tue, 22 Mar 2005)
New Revision: 2196
Removed:
WSGIKit/trunk/examples/todo-app/scratch.py
Modified:
WSGIKit/trunk/examples/todo-app/start_twisted.py
WSGIKit/trunk/examples/todo-app/start_wsgiutils.py
Log:
Removed sample code
Deleted: WSGIKit/trunk/examples/todo-app/scratch.py
===================================================================
--- WSGIKit/trunk/examples/todo-app/scratch.py 2005-03-22 20:41:28 UTC (rev 2195)
+++ WSGIKit/trunk/examples/todo-app/scratch.py 2005-03-22 21:20:55 UTC (rev 2196)
@@ -1,23 +0,0 @@
-
-def eat_user(app, index_app):
-
- def replacement_app(environ, start_response):
- path_info = environ['PATH_INFO']
- if not path_info:
- return index_app(environ, start_response)
- assert path_info.startswith('/')
- path_info = path_info[1:]
- if '/' in path_info:
- username, rest = path_info.split('/', 1)
- rest = '/' + rest
- else:
- username = path_info
- rest = ''
- environ['app.username'] = username
- environ['PATH_INFO'] = rest
- environ['SCRIPT_NAME'] = environ['SCRIPT_NAME'] + '/' + username
- return app(environ, start_response)
-
- return replacement_app
-
-
Modified: WSGIKit/trunk/examples/todo-app/start_twisted.py
===================================================================
--- WSGIKit/trunk/examples/todo-app/start_twisted.py 2005-03-22 20:41:28 UTC (rev 2195)
+++ WSGIKit/trunk/examples/todo-app/start_twisted.py 2005-03-22 21:20:55 UTC (rev 2196)
@@ -2,6 +2,7 @@
import os
import sys
from optparse import OptionParser, make_option
+sys.path.insert(0, "/var/www/WSGIKit")
from wsgikit import twisted_wsgi
from wsgikit.webkit import wsgiwebkit
Modified: WSGIKit/trunk/examples/todo-app/start_wsgiutils.py
===================================================================
--- WSGIKit/trunk/examples/todo-app/start_wsgiutils.py 2005-03-22 20:41:28 UTC (rev 2195)
+++ WSGIKit/trunk/examples/todo-app/start_wsgiutils.py 2005-03-22 21:20:55 UTC (rev 2196)
@@ -3,6 +3,7 @@
import sys
from optparse import OptionParser, make_option
from os.path import dirname, abspath, join
+sys.path.insert(0, "/var/www/WSGIKit")
from wsgiutils import wsgiServer
from wsgikit.webkit import wsgiwebkit
|