Permalink
Browse files

If not being ran, generate a WSGI function for waitress-serve.py, &c.

  • Loading branch information...
kgaughan committed Sep 23, 2012
1 parent 6f0bde2 commit 01e4f4913e992d33b464c81b1fc30686e73d4f84
Showing with 2 additions and 0 deletions.
  1. +2 −0 examples/notary/notary.py
@@ -126,3 +126,5 @@ def POST(self, slug):
app.run()
finally:
pool.finalise()
+else:
+ wsgi_app = app.wsgifunc()

0 comments on commit 01e4f49

Please sign in to comment.