-
diff --git a/src/allmydata/test/test_web.py b/src/allmydata/test/test_web.py
index dc7ab9e..efa89c0 100644
a
|
b
|
class Web(WebMixin, WebErrorMixin, testutil.StallMixin, testutil.ReallyEqualMixi |
1276 | 1276 | return d |
1277 | 1277 | |
1278 | 1278 | def test_CSS_FILE(self): |
1279 | | d = self.GET("/tahoe_css", followRedirect=True) |
| 1279 | d = self.GET("/tahoe.css", followRedirect=True) |
1280 | 1280 | def _check(res): |
1281 | 1281 | CSS_STYLE=re.compile('toolbar\s{.+text-align:\scenter.+toolbar-item.+display:\sinline',re.DOTALL) |
1282 | 1282 | self.failUnless(CSS_STYLE.search(res), res) |
-
diff --git a/src/allmydata/web/check-and-repair-results.xhtml b/src/allmydata/web/check-and-repair-results.xhtml
index 6d27af6..c847619 100644
a
|
b
|
|
1 | 1 | <html xmlns:n="http://nevow.com/ns/nevow/0.1"> |
2 | 2 | <head> |
3 | 3 | <title>Tahoe-LAFS - Check Results</title> |
4 | | <link href="/tahoe_css" rel="stylesheet" type="text/css"/> |
5 | | <link href="/webform_css" rel="stylesheet" type="text/css"/> |
| 4 | <link href="/tahoe.css" rel="stylesheet" type="text/css"/> |
6 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
7 | 6 | </head> |
8 | 7 | <body> |
-
diff --git a/src/allmydata/web/check-results.xhtml b/src/allmydata/web/check-results.xhtml
index 06e527d..9d9c53b 100644
a
|
b
|
|
1 | 1 | <html xmlns:n="http://nevow.com/ns/nevow/0.1"> |
2 | 2 | <head> |
3 | 3 | <title>Tahoe-LAFS - Check Results</title> |
4 | | <link href="/tahoe_css" rel="stylesheet" type="text/css"/> |
5 | | <link href="/webform_css" rel="stylesheet" type="text/css"/> |
| 4 | <link href="/tahoe.css" rel="stylesheet" type="text/css"/> |
6 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
7 | 6 | </head> |
8 | 7 | <body> |
-
diff --git a/src/allmydata/web/deep-check-and-repair-results.xhtml b/src/allmydata/web/deep-check-and-repair-results.xhtml
index 7dd1793..e52a06e 100644
a
|
b
|
|
1 | 1 | <html xmlns:n="http://nevow.com/ns/nevow/0.1"> |
2 | 2 | <head> |
3 | 3 | <title>Tahoe-LAFS - Deep Check Results</title> |
4 | | <link href="/tahoe_css" rel="stylesheet" type="text/css"/> |
5 | | <link href="/webform_css" rel="stylesheet" type="text/css"/> |
| 4 | <link href="/tahoe.css" rel="stylesheet" type="text/css"/> |
6 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
7 | 6 | <meta n:render="refresh" /> |
8 | 7 | </head> |
-
diff --git a/src/allmydata/web/deep-check-results.xhtml b/src/allmydata/web/deep-check-results.xhtml
index 6b0f81b..91f8622 100644
a
|
b
|
|
1 | 1 | <html xmlns:n="http://nevow.com/ns/nevow/0.1"> |
2 | 2 | <head> |
3 | 3 | <title>Tahoe-LAFS - Deep Check Results</title> |
4 | | <link href="/tahoe_css" rel="stylesheet" type="text/css"/> |
5 | | <link href="/webform_css" rel="stylesheet" type="text/css"/> |
| 4 | <link href="/tahoe.css" rel="stylesheet" type="text/css"/> |
6 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
7 | 6 | <meta n:render="refresh" /> |
8 | 7 | </head> |
-
diff --git a/src/allmydata/web/directory.xhtml b/src/allmydata/web/directory.xhtml
index 4875738..4bcee9a 100644
a
|
b
|
|
1 | 1 | <html xmlns:n="http://nevow.com/ns/nevow/0.1"><head> |
2 | 2 | <title n:render="title"></title> |
3 | | <link href="/webform_css" rel="stylesheet" type="text/css"/> |
4 | | <link href="/tahoe_css" rel="stylesheet" type="text/css"/> |
| 3 | <link href="/tahoe.css" rel="stylesheet" type="text/css"/> |
5 | 4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
6 | 5 | </head><body class="tahoe-directory-page"> |
7 | 6 | |
-
diff --git a/src/allmydata/web/download-status-timeline.xhtml b/src/allmydata/web/download-status-timeline.xhtml
index 0a7002c..1f36d21 100644
a
|
b
|
|
1 | 1 | <html xmlns:n="http://nevow.com/ns/nevow/0.1"> |
2 | 2 | <head> |
3 | 3 | <title>AllMyData - Tahoe - File Download Status Timeline</title> |
4 | | <link href="/tahoe_css" rel="stylesheet" type="text/css"/> |
5 | | <link href="/webform_css" rel="stylesheet" type="text/css"/> |
| 4 | <link href="/tahoe.css" rel="stylesheet" type="text/css"/> |
6 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
7 | 6 | <script type="text/javascript" src="/jquery-1.6.1.min.js"></script> |
8 | 7 | <script type="text/javascript" src="/d3-2.4.6.min.js"></script> |
-
diff --git a/src/allmydata/web/download-status.xhtml b/src/allmydata/web/download-status.xhtml
index b3560ed..5ee3c8b 100644
a
|
b
|
|
1 | 1 | <html xmlns:n="http://nevow.com/ns/nevow/0.1"> |
2 | 2 | <head> |
3 | 3 | <title>Tahoe-LAFS - File Download Status</title> |
4 | | <link href="/tahoe_css" rel="stylesheet" type="text/css"/> |
5 | | <link href="/webform_css" rel="stylesheet" type="text/css"/> |
| 4 | <link href="/tahoe.css" rel="stylesheet" type="text/css"/> |
6 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
7 | 6 | </head> |
8 | 7 | <body> |
-
diff --git a/src/allmydata/web/helper.xhtml b/src/allmydata/web/helper.xhtml
index 05f185e..b3c6c26 100644
a
|
b
|
|
1 | 1 | <html xmlns:n="http://nevow.com/ns/nevow/0.1"> |
2 | 2 | <head> |
3 | 3 | <title>Tahoe-LAFS - Helper Status</title> |
4 | | <link href="/tahoe_css" rel="stylesheet" type="text/css"/> |
5 | | <link href="/webform_css" rel="stylesheet" type="text/css"/> |
| 4 | <link href="/tahoe.css" rel="stylesheet" type="text/css"/> |
6 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
7 | 6 | </head> |
8 | 7 | <body> |
-
diff --git a/src/allmydata/web/info.xhtml b/src/allmydata/web/info.xhtml
index 0c82064..dcc8b39 100644
a
|
b
|
|
1 | 1 | <html xmlns:n="http://nevow.com/ns/nevow/0.1"><head> |
2 | 2 | <title n:render="title"></title> |
3 | | <link href="/webform_css" rel="stylesheet" type="text/css"/> |
4 | | <link href="/tahoe_css" rel="stylesheet" type="text/css"/> |
| 3 | <link href="/tahoe.css" rel="stylesheet" type="text/css"/> |
5 | 4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
6 | 5 | |
7 | 6 | </head><body> |
-
diff --git a/src/allmydata/web/literal-check-results.xhtml b/src/allmydata/web/literal-check-results.xhtml
index aa11798..ee990df 100644
a
|
b
|
|
1 | 1 | <html xmlns:n="http://nevow.com/ns/nevow/0.1"> |
2 | 2 | <head> |
3 | 3 | <title>Tahoe-LAFS - Check Results</title> |
4 | | <link href="/tahoe_css" rel="stylesheet" type="text/css"/> |
5 | | <link href="/webform_css" rel="stylesheet" type="text/css"/> |
| 4 | <link href="/tahoe.css" rel="stylesheet" type="text/css"/> |
6 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
7 | 6 | </head> |
8 | 7 | <body> |
-
diff --git a/src/allmydata/web/manifest.xhtml b/src/allmydata/web/manifest.xhtml
index ecc6e0c..5c53360 100644
a
|
b
|
|
1 | 1 | <html xmlns:n="http://nevow.com/ns/nevow/0.1"> |
2 | 2 | <head> |
3 | 3 | <title n:render="title"></title> |
4 | | <link href="/tahoe_css" rel="stylesheet" type="text/css"/> |
| 4 | <link href="/tahoe.css" rel="stylesheet" type="text/css"/> |
5 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
6 | 6 | <meta n:render="refresh" /> |
7 | 7 | </head> |
-
diff --git a/src/allmydata/web/map-update-status.xhtml b/src/allmydata/web/map-update-status.xhtml
index a4c1a7d..29661f6 100644
a
|
b
|
|
1 | 1 | <html xmlns:n="http://nevow.com/ns/nevow/0.1"> |
2 | 2 | <head> |
3 | 3 | <title>Tahoe-LAFS - Mutable File Servermap Update Status</title> |
4 | | <link href="/tahoe_css" rel="stylesheet" type="text/css"/> |
5 | | <link href="/webform_css" rel="stylesheet" type="text/css"/> |
| 4 | <link href="/tahoe.css" rel="stylesheet" type="text/css"/> |
6 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
7 | 6 | </head> |
8 | 7 | <body> |
-
diff --git a/src/allmydata/web/provisioning.xhtml b/src/allmydata/web/provisioning.xhtml
index 1217bf9..d28c4e2 100644
a
|
b
|
|
1 | 1 | <html xmlns:n="http://nevow.com/ns/nevow/0.1"> |
2 | 2 | <head> |
3 | 3 | <title>Tahoe-LAFS - Provisioning Tool</title> |
4 | | <link href="/tahoe_css" rel="stylesheet" type="text/css"/> |
5 | | <link href="/webform_css" rel="stylesheet" type="text/css"/> |
| 4 | <link href="/tahoe.css" rel="stylesheet" type="text/css"/> |
6 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
7 | 6 | </head> |
8 | 7 | <body> |
-
diff --git a/src/allmydata/web/publish-status.xhtml b/src/allmydata/web/publish-status.xhtml
index 38e6dac..f8b2b1c 100644
a
|
b
|
|
1 | 1 | <html xmlns:n="http://nevow.com/ns/nevow/0.1"> |
2 | 2 | <head> |
3 | 3 | <title>Tahoe-LAFS - Mutable File Publish Status</title> |
4 | | <link href="/tahoe_css" rel="stylesheet" type="text/css"/> |
5 | | <link href="/webform_css" rel="stylesheet" type="text/css"/> |
| 4 | <link href="/tahoe.css" rel="stylesheet" type="text/css"/> |
6 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
7 | 6 | </head> |
8 | 7 | <body> |
-
diff --git a/src/allmydata/web/reliability.xhtml b/src/allmydata/web/reliability.xhtml
index 795bf62..bc06805 100644
a
|
b
|
|
1 | 1 | <html xmlns:n="http://nevow.com/ns/nevow/0.1"> |
2 | 2 | <head> |
3 | 3 | <title>Tahoe-LAFS - Reliability Tool</title> |
4 | | <link href="/tahoe_css" rel="stylesheet" type="text/css"/> |
5 | | <link href="/webform_css" rel="stylesheet" type="text/css"/> |
| 4 | <link href="/tahoe.css" rel="stylesheet" type="text/css"/> |
6 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
7 | 6 | </head> |
8 | 7 | <body> |
-
diff --git a/src/allmydata/web/rename-form.xhtml b/src/allmydata/web/rename-form.xhtml
index 55399a3..b29b06c 100644
a
|
b
|
|
1 | 1 | <html xmlns:n="http://nevow.com/ns/nevow/0.1"> |
2 | 2 | <head> |
3 | 3 | <title n:render="title"></title> |
4 | | <link href="/webform_css" rel="stylesheet" type="text/css"/> |
5 | | <link href="/tahoe_css" rel="stylesheet" type="text/css"/> |
| 4 | <link href="/tahoe.css" rel="stylesheet" type="text/css"/> |
6 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
7 | 6 | </head> |
8 | 7 | |
-
diff --git a/src/allmydata/web/retrieve-status.xhtml b/src/allmydata/web/retrieve-status.xhtml
index 4e457f4..48e9d75 100644
a
|
b
|
|
1 | 1 | <html xmlns:n="http://nevow.com/ns/nevow/0.1"> |
2 | 2 | <head> |
3 | 3 | <title>Tahoe-LAFS - Mutable File Retrieve Status</title> |
4 | | <link href="/tahoe_css" rel="stylesheet" type="text/css"/> |
5 | | <link href="/webform_css" rel="stylesheet" type="text/css"/> |
| 4 | <link href="/tahoe.css" rel="stylesheet" type="text/css"/> |
6 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
7 | 6 | </head> |
8 | 7 | <body> |
-
diff --git a/src/allmydata/web/root.py b/src/allmydata/web/root.py
index 3fbe5b8..6481289 100644
a
|
b
|
|
1 | | import time |
| 1 | import time, os |
2 | 2 | |
3 | 3 | from twisted.internet import address |
4 | 4 | from twisted.web import http |
… |
… |
class Root(rend.Page): |
168 | 168 | self.child_named = FileHandler(client) |
169 | 169 | self.child_status = status.Status(client.get_history()) |
170 | 170 | self.child_statistics = status.Statistics(client.stats_provider) |
171 | | def f(name): |
172 | | return nevow_File(resource_filename('allmydata.web', name)) |
173 | | self.putChild("download_status_timeline.js", f("download_status_timeline.js")) |
174 | | self.putChild("jquery-1.6.1.min.js", f("jquery-1.6.1.min.js")) |
175 | | self.putChild("d3-2.4.6.min.js", f("d3-2.4.6.min.js")) |
176 | | self.putChild("d3-2.4.6.time.min.js", f("d3-2.4.6.time.min.js")) |
| 171 | static_dir = resource_filename("allmydata.web", "static") |
| 172 | for filen in os.listdir(static_dir): |
| 173 | self.putChild(filen, nevow_File(os.path.join(static_dir, filen))) |
177 | 174 | |
178 | 175 | def child_helper_status(self, ctx): |
179 | 176 | # the Helper isn't attached until after the Tub starts, so this child |
180 | 177 | # needs to created on each request |
181 | 178 | return status.HelperStatus(self.client.helper) |
182 | 179 | |
183 | | child_webform_css = webform.defaultCSS |
184 | | child_tahoe_css = nevow_File(resource_filename('allmydata.web', 'tahoe.css')) |
185 | | |
186 | 180 | child_provisioning = provisioning.ProvisioningTool() |
187 | 181 | if reliability.is_available(): |
188 | 182 | child_reliability = reliability.ReliabilityTool() |
-
diff --git a/src/allmydata/web/statistics.xhtml b/src/allmydata/web/statistics.xhtml
index b10d679..f038ee1 100644
a
|
b
|
|
1 | 1 | <html xmlns:n="http://nevow.com/ns/nevow/0.1"> |
2 | 2 | <head> |
3 | 3 | <title>Tahoe-LAFS - Stats</title> |
4 | | <link href="/tahoe_css" rel="stylesheet" type="text/css"/> |
5 | | <link href="/webform_css" rel="stylesheet" type="text/css"/> |
| 4 | <link href="/tahoe.css" rel="stylesheet" type="text/css"/> |
6 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
7 | 6 | </head> |
8 | 7 | <body n:data="get_stats"> |
-
diff --git a/src/allmydata/web/status.xhtml b/src/allmydata/web/status.xhtml
index d891e0d..fef0e80 100644
a
|
b
|
|
1 | 1 | <html xmlns:n="http://nevow.com/ns/nevow/0.1"> |
2 | 2 | <head> |
3 | 3 | <title>Tahoe-LAFS - Current Uploads/Downloads</title> |
4 | | <link href="/tahoe_css" rel="stylesheet" type="text/css"/> |
| 4 | <link href="/tahoe.css" rel="stylesheet" type="text/css"/> |
5 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
6 | 6 | </head> |
7 | 7 | <body> |
-
diff --git a/src/allmydata/web/storage_status.xhtml b/src/allmydata/web/storage_status.xhtml
index 3133a70..3ab0ee6 100644
a
|
b
|
|
1 | 1 | <html xmlns:n="http://nevow.com/ns/nevow/0.1"> |
2 | 2 | <head> |
3 | 3 | <title>Tahoe-LAFS - Storage Server Status</title> |
4 | | <link href="/webform_css" rel="stylesheet" type="text/css"/> |
5 | 4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
6 | 5 | </head> |
7 | 6 | <body> |
-
diff --git a/src/allmydata/web/upload-results.xhtml b/src/allmydata/web/upload-results.xhtml
index 2886fc3..f9ff3f7 100644
a
|
b
|
|
1 | 1 | <html xmlns:n="http://nevow.com/ns/nevow/0.1"> |
2 | 2 | <head> |
3 | 3 | <title>Tahoe-LAFS - File Uploaded</title> |
4 | | <link href="/tahoe_css" rel="stylesheet" type="text/css"/> |
5 | | <link href="/webform_css" rel="stylesheet" type="text/css"/> |
| 4 | <link href="/tahoe.css" rel="stylesheet" type="text/css"/> |
6 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
7 | 6 | </head> |
8 | 7 | <body> |
-
diff --git a/src/allmydata/web/upload-status.xhtml b/src/allmydata/web/upload-status.xhtml
index 7c5633f..0ea9d08 100644
a
|
b
|
|
1 | 1 | <html xmlns:n="http://nevow.com/ns/nevow/0.1"> |
2 | 2 | <head> |
3 | 3 | <title>Tahoe-LAFS - File Upload Status</title> |
4 | | <link href="/tahoe_css" rel="stylesheet" type="text/css"/> |
5 | | <link href="/webform_css" rel="stylesheet" type="text/css"/> |
| 4 | <link href="/tahoe.css" rel="stylesheet" type="text/css"/> |
6 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
7 | 6 | </head> |
8 | 7 | <body> |
-
diff --git a/src/allmydata/web/welcome.xhtml b/src/allmydata/web/welcome.xhtml
index c2b1d17..8abb312 100644
a
|
b
|
|
1 | 1 | <html xmlns:n="http://nevow.com/ns/nevow/0.1"><head> |
2 | 2 | <title>Tahoe-LAFS - Welcome</title> |
3 | | <link href="/webform_css" rel="stylesheet" type="text/css"/> |
4 | | <link href="/tahoe_css" rel="stylesheet" type="text/css"/> |
| 3 | <link href="/tahoe.css" rel="stylesheet" type="text/css"/> |
5 | 4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
6 | 5 | </head><body> |
7 | 6 | |