]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
wui: edit some of the human-readable parts of the wui such as button labels
authorZooko O'Whielacronx <zooko@zooko.com>
Tue, 7 Apr 2009 18:54:59 +0000 (11:54 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Tue, 7 Apr 2009 18:54:59 +0000 (11:54 -0700)
(The word "parent" suggests that you can go up a directory hierarchy -- perhaps that word is vestigial.)

docs/frontends/webapi.txt
src/allmydata/test/test_checker.py
src/allmydata/test/test_web.py
src/allmydata/web/check_results.py
src/allmydata/web/root.py

index 55d79e65559bd22cfea96b2c504a6de2111182ad..658524fb22c13a303b0ca1479b626be1929377fb 100644 (file)
@@ -589,7 +589,7 @@ POST /uri?t=mkdir
  you'll be able to get back to the directory again in the future. This is the
  recommended way to start working with a Tahoe server: create a new unlinked
  directory (using redirect_to_result=true), then bookmark the resulting
- /uri/$DIRCAP page. There is a "Create Directory" button on the Welcome page
+ /uri/$DIRCAP page. There is a "create directory" button on the Welcome page
  to invoke this action.
 
  If "redirect_to_result=true" is not provided (or is given a value of
index a1827cd15f6f48a931b1f639c37520745630acdd..8dc24489e4eb730666d3ebab484d7b936386e763 100644 (file)
@@ -41,7 +41,7 @@ class WebResultsRendering(unittest.TestCase, WebRenderingMixin):
         def _check_return_to(html):
             s = self.remove_tags(html)
             self.failUnlessIn("Literal files are always healthy", s)
-            self.failUnlessIn('<a href="FOOURL">Return to parent directory</a>',
+            self.failUnlessIn('<a href="FOOURL">Return to file.</a>',
                               html)
         d.addCallback(_check_return_to)
         d.addCallback(lambda ignored: self.render_json(lcr))
@@ -111,7 +111,7 @@ class WebResultsRendering(unittest.TestCase, WebRenderingMixin):
         self.failUnlessIn("Not Recoverable! : rather dead", s)
 
         html = self.render2(w, args={"return_to": ["FOOURL"]})
-        self.failUnlessIn('<a href="FOOURL">Return to parent directory</a>',
+        self.failUnlessIn('<a href="FOOURL">Return to file/directory.</a>',
                           html)
 
         d = self.render_json(w)
index d4d6cdbea7bb125575998d3ad5a3ac8ecd85dcdc..9bca752170d6d600f286dccc7b5c91eeb255009f 100644 (file)
@@ -1620,7 +1620,7 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, unittest.TestCase):
                       self.POST(bar_url, t="check", return_to=redir_url))
         def _check3(res):
             self.failUnless("Healthy :" in res)
-            self.failUnless("Return to parent directory" in res)
+            self.failUnless("Return to file" in res)
             self.failUnless(redir_url in res)
         d.addCallback(_check3)
 
@@ -1654,7 +1654,7 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, unittest.TestCase):
                       self.POST(bar_url, t="check", return_to=redir_url))
         def _check3(res):
             self.failUnless("Healthy :" in res)
-            self.failUnless("Return to parent directory" in res)
+            self.failUnless("Return to file" in res)
             self.failUnless(redir_url in res)
         d.addCallback(_check3)
         return d
@@ -1679,7 +1679,7 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, unittest.TestCase):
                       self.POST(foo_url, t="check", return_to=redir_url))
         def _check3(res):
             self.failUnless("Healthy :" in res, res)
-            self.failUnless("Return to parent directory" in res)
+            self.failUnless("Return to file/directory" in res)
             self.failUnless(redir_url in res)
         d.addCallback(_check3)
 
@@ -1713,7 +1713,7 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, unittest.TestCase):
                       self.POST(foo_url, t="check", return_to=redir_url))
         def _check3(res):
             self.failUnless("Healthy :" in res)
-            self.failUnless("Return to parent directory" in res)
+            self.failUnless("Return to file/directory" in res)
             self.failUnless(redir_url in res)
         d.addCallback(_check3)
         return d
@@ -1884,7 +1884,7 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, unittest.TestCase):
         # Fetch the welcome page.
         d = self.GET("/")
         def _after_get_welcome_page(res):
-            MKDIR_BUTTON_RE=re.compile('<form action="([^"]*)" method="post".*<input type="hidden" name="t" value="([^"]*)" /><input type="hidden" name="([^"]*)" value="([^"]*)" /><input type="submit" value="Create Directory!" />', re.I)
+            MKDIR_BUTTON_RE=re.compile('<form action="([^"]*)" method="post".*<input type="hidden" name="t" value="([^"]*)" /><input type="hidden" name="([^"]*)" value="([^"]*)" /><input type="submit" value="create directory" />', re.I)
             mo = MKDIR_BUTTON_RE.search(res)
             formaction = mo.group(1)
             formt = mo.group(2)
@@ -2567,7 +2567,7 @@ class Grid(GridTestMixin, WebErrorMixin, unittest.TestCase, ShouldFailMixin):
         def _got_html_good_return_to(res):
             self.failUnless("Healthy" in res, res)
             self.failIf("Not Healthy" in res, res)
-            self.failUnless('<a href="somewhere">Return to parent directory'
+            self.failUnless('<a href="somewhere">Return to file'
                             in res, res)
         d.addCallback(_got_html_good_return_to)
         d.addCallback(self.CHECK, "good", "t=check&output=json")
@@ -2588,7 +2588,7 @@ class Grid(GridTestMixin, WebErrorMixin, unittest.TestCase, ShouldFailMixin):
         def _got_html_small_return_to(res):
             self.failUnless("Literal files are always healthy" in res, res)
             self.failIf("Not Healthy" in res, res)
-            self.failUnless('<a href="somewhere">Return to parent directory'
+            self.failUnless('<a href="somewhere">Return to file'
                             in res, res)
         d.addCallback(_got_html_small_return_to)
         d.addCallback(self.CHECK, "small", "t=check&output=json")
index 14c4b1a1622876b02e2980dee9b2a8401d0bbc14..cdf5dec5e26a1b6018103ea45535cda0d7bbce84 100644 (file)
@@ -198,7 +198,7 @@ class LiteralCheckResults(rend.Page, ResultsBase):
         req = inevow.IRequest(ctx)
         return_to = get_arg(req, "return_to", None)
         if return_to:
-            return T.div[T.a(href=return_to)["Return to parent directory"]]
+            return T.div[T.a(href=return_to)["Return to file."]]
         return ""
 
 class CheckerBase:
@@ -215,7 +215,7 @@ class CheckerBase:
         req = inevow.IRequest(ctx)
         return_to = get_arg(req, "return_to", None)
         if return_to:
-            return T.div[T.a(href=return_to)["Return to parent directory"]]
+            return T.div[T.a(href=return_to)["Return to file/directory."]]
         return ""
 
 class CheckResults(CheckerBase, rend.Page, ResultsBase):
@@ -435,7 +435,7 @@ class DeepCheckResults(rend.Page, ResultsBase, ReloadMixin):
         req = inevow.IRequest(ctx)
         return_to = get_arg(req, "return_to", None)
         if return_to:
-            return T.div[T.a(href=return_to)["Return to parent directory"]]
+            return T.div[T.a(href=return_to)["Return to file/directory."]]
         return ""
 
     def data_all_objects(self, ctx, data):
@@ -615,7 +615,7 @@ class DeepCheckAndRepairResults(rend.Page, ResultsBase, ReloadMixin):
         req = inevow.IRequest(ctx)
         return_to = get_arg(req, "return_to", None)
         if return_to:
-            return T.div[T.a(href=return_to)["Return to parent directory"]]
+            return T.div[T.a(href=return_to)["Return to file/directory."]]
         return ""
 
     def data_all_objects(self, ctx, data):
index 79441c25aaa5132c01721ceb3228a2dc81a8baad..196506e4a7c88cc05e5f89b6a011308772be6a5e 100644 (file)
@@ -329,10 +329,10 @@ class Root(rend.Page):
         form = T.form(action="uri", method="post",
                       enctype="multipart/form-data")[
             T.fieldset[
-            T.legend(class_="freeform-form-label")["Create a directory"],
+            T.legend(class_="freeform-form-label")["Create a directory."],
             T.input(type="hidden", name="t", value="mkdir"),
             T.input(type="hidden", name="redirect_to_result", value="true"),
-            T.input(type="submit", value="Create Directory!"),
+            T.input(type="submit", value="create directory"),
             ]]
         return T.div[form]