]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
web: remove more dead code
authorBrian Warner <warner@lothar.com>
Sun, 8 Jul 2007 05:20:03 +0000 (22:20 -0700)
committerBrian Warner <warner@lothar.com>
Sun, 8 Jul 2007 05:20:03 +0000 (22:20 -0700)
src/allmydata/web/directory.xhtml
src/allmydata/webish.py

index b8a7ab8373895df462cdd86c4a0ca89c16186628..93739f230abd1208258760f631067f80a84ff74a 100644 (file)
 <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">
 
 <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>
index db5d4279a66ce6b341343988855a3ca6a138a184..53531ddbf8849713ff0be465f9a67a59f36385ec 100644 (file)
@@ -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)