From: Brian Warner <warner@lothar.com> Date: Sun, 8 Jul 2007 05:20:03 +0000 (-0700) Subject: web: remove more dead code X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/webapi.txt?a=commitdiff_plain;h=135f08a5189232b334596249bdce0493ac4cdfd0;p=tahoe-lafs%2Ftahoe-lafs.git web: remove more dead code --- diff --git a/src/allmydata/web/directory.xhtml b/src/allmydata/web/directory.xhtml index b8a7ab83..93739f23 100644 --- a/src/allmydata/web/directory.xhtml +++ b/src/allmydata/web/directory.xhtml @@ -22,14 +22,6 @@ <a href="?t=xml">XML</a> </div> -<!-- -<div>To share this directory, paste the following URI string into an - "Add Shared Directory" box: - <pre class="overflow" n:render="string" n:data="share_uri" /></div> -<div>To share a transitively read-only copy, use the following URI instead: - <pre class="overflow" n:render="string" n:data="share_readonly_uri" /></div> ---> - <div> <table n:render="sequence" n:data="children" border="1"> <tr n:pattern="header"> @@ -55,59 +47,6 @@ <div n:render="forms"/> -<!-- -<div class="freeform-form"> - <form action="." method="post" enctype="multipart/form-data"> - <fieldset> - <input type="hidden" name="t" value="mkdir" /> - - <legend class="freeform-form-label"> - Create a new directory - </legend> - New directory name: <input type="text" name="name" /> - <input type="submit" value="Create" /> - - </fieldset> - </form> -</div> - -<div class="freeform-form"> - <form action="." method="post" enctype="multipart/form-data"> - <fieldset> - <input type="hidden" name="t" value="upload" /> - - <legend class="freeform-form-label"> - Upload a file to this directory - </legend> - Choose a file to upload: - <input type="file" name="file" class="freeform-input-file" /> - <input type="submit" value="Upload" /> - - </fieldset> - </form> -</div> - -<div class="freeform-form"> - <form action="." method="post" enctype="multipart/form-data"> - <fieldset> - <input type="hidden" name="t" value="uri" /> - - <legend class="freeform-form-label"> - Attach a file or directory (by URI) to this directory - </legend> - - New child name: <input type="text" name="name" /> - URI of new child: <input type="text" name="uri" /> - - <input type="submit" value="Attach" /> - - </fieldset> - </form> -</div> ---> - - - <div class="results" n:render="results"/> </body> diff --git a/src/allmydata/webish.py b/src/allmydata/webish.py index db5d4279..53531ddb 100644 --- a/src/allmydata/webish.py +++ b/src/allmydata/webish.py @@ -29,13 +29,6 @@ class Directory(rend.Page): self._dirnode = dirnode self._dirpath = dirpath - def childFactory(self, ctx, name): - if name.startswith("freeform"): # ick - return None - #if name == "@manifest": # ick, this time it's my fault - # return Manifest(self._dirnode, self._dirpath) - return rend.NotFound - def dirpath_as_string(self): return "/" + "/".join(self._dirpath)