git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3d513b
)
Allow SWAT to be run outside of smbd.
author
Jelmer Vernooij
<jelmer@samba.org>
Sun, 21 Sep 2008 18:06:18 +0000
(20:06 +0200)
committer
Jelmer Vernooij
<jelmer@samba.org>
Sun, 21 Sep 2008 18:06:18 +0000
(20:06 +0200)
source4/web_server/swat/__init__.py
patch
|
blob
|
history
diff --git
a/source4/web_server/swat/__init__.py
b/source4/web_server/swat/__init__.py
index 8229d15a3ca6cd8a1bb082bdc572f039fa9fd8cf..d434bb260b0243fd49e79088f3151fa9198c86c6 100644
(file)
--- a/
source4/web_server/swat/__init__.py
+++ b/
source4/web_server/swat/__init__.py
@@
-32,3
+32,8
@@
def __call__(environ, start_response):
yield '</table>\n'
+if __name__ == '__main__':
+ from wsgiref import simple_server
+ httpd = simple_server.make_server('localhost', 8090, __call__)
+ print "Serving HTTP on port 8090..."
+ httpd.serve_forever()