projects
/
contrib
/
Conifer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51389a4
)
Prep for use in mod_wsgi
author
Dan Scott
<dscott@laurentian.ca>
Wed, 11 Jul 2012 13:46:10 +0000
(09:46 -0400)
committer
Dan Scott
<dscott@laurentian.ca>
Tue, 7 May 2013 18:57:54 +0000
(14:57 -0400)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
tools/patron-load/webui.py
patch
|
blob
|
history
diff --git
a/tools/patron-load/webui.py
b/tools/patron-load/webui.py
index
c3af4fc
..
6eb2a1f
100644
(file)
--- a/
tools/patron-load/webui.py
+++ b/
tools/patron-load/webui.py
@@
-1,6
+1,11
@@
#!/usr/bin/env python
"A simple Web UI based on the web.py framework"
+import sys, os
+abspath = os.path.dirname(__file__)
+sys.path.append(abspath)
+os.chdir(abspath)
+
import web
import ldap_osrf_sync
@@
-56,3
+61,6
@@
class LDAP_ARGS:
if __name__ == "__main__":
app = web.application(urls, globals())
app.run()
+
+app = web.application(urls, globals(), autoreload=False)
+application = app.wsgifunc()