blob: ef131821abca6832806cf4f6f245b8e286551fc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
class SimpleApp(object):
def __init__(self, global_conf, local_conf, name):
self.global_conf = global_conf
self.local_conf = local_conf
self.name = name
def __call__(self, environ, start_response):
start_response('200 OK', [('Content-type', 'text/html')])
return ['I am: ', name]
def make_app(cls, global_conf, **conf):
return cls(global_conf, conf, 'basic')
make_app = classmethod(make_app)
|