fix make_app logic

This commit is contained in:
Martin Zimmermann 2014-03-06 11:05:22 +01:00
parent 3b248b293f
commit 772730dbcd

View File

@ -145,15 +145,16 @@ class Isso(object):
def make_app(conf=None, threading=True, multiprocessing=False, uwsgi=False):
if not any((threading, multiprocessing, uwsgi)):
raise RuntimeError("either set threading, multiprocessing or uwsgi")
if threading:
class App(Isso, ThreadedMixin):
pass
if multiprocessing:
elif multiprocessing:
class App(Isso, ProcessMixin):
pass
if uwsgi:
else:
class App(Isso, uWSGIMixin):
pass