also move the static directory into the dedup package
authorHelmut Grohne <helmut@subdivi.de>
Sat, 27 Jul 2013 07:39:14 +0000 (09:39 +0200)
committerHelmut Grohne <helmut@subdivi.de>
Sat, 27 Jul 2013 07:39:14 +0000 (09:39 +0200)
dedup/static/favicon.ico [new file with mode: 0644]
dedup/static/style.css [new file with mode: 0644]
static/favicon.ico [deleted file]
static/style.css [deleted file]
webapp.py

diff --git a/dedup/static/favicon.ico b/dedup/static/favicon.ico
new file mode 100644 (file)
index 0000000..5039835
Binary files /dev/null and b/dedup/static/favicon.ico differ
diff --git a/dedup/static/style.css b/dedup/static/style.css
new file mode 100644 (file)
index 0000000..531ef9d
--- /dev/null
@@ -0,0 +1,12 @@
+.dependency {
+       background-color: yellow;
+}
+td {
+       vertical-align: top;
+}
+.filename {
+       display: block;
+}
+.filename:hover {
+       background-color: #eee;
+}
diff --git a/static/favicon.ico b/static/favicon.ico
deleted file mode 100644 (file)
index 5039835..0000000
Binary files a/static/favicon.ico and /dev/null differ
diff --git a/static/style.css b/static/style.css
deleted file mode 100644 (file)
index 531ef9d..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-.dependency {
-       background-color: yellow;
-}
-td {
-       vertical-align: top;
-}
-.filename {
-       display: block;
-}
-.filename:hover {
-       background-color: #eee;
-}
index e180087..6c6f5b4 100755 (executable)
--- a/webapp.py
+++ b/webapp.py
@@ -1,7 +1,6 @@
 #!/usr/bin/python
 
 import datetime
 #!/usr/bin/python
 
 import datetime
-import os.path
 import sqlite3
 from wsgiref.simple_server import make_server
 
 import sqlite3
 from wsgiref.simple_server import make_server
 
@@ -244,8 +243,7 @@ class Application(object):
 
 def main():
     app = Application(sqlite3.connect("test.sqlite3"))
 
 def main():
     app = Application(sqlite3.connect("test.sqlite3"))
-    staticdir = os.path.join(os.path.dirname(__file__), "static")
-    app = SharedDataMiddleware(app, {"/": staticdir})
+    app = SharedDataMiddleware(app, {"/": ("dedup", "static")})
     make_server("0.0.0.0", 8800, app).serve_forever()
 
 if __name__ == "__main__":
     make_server("0.0.0.0", 8800, app).serve_forever()
 
 if __name__ == "__main__":