(The word "parent" suggests that you can go up a directory hierarchy -- perhaps that word is vestigial.)
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
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))
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)
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)
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
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)
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
# 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)
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")
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")
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:
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):
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):
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):
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]