web: remove more dead code

This commit is contained in:
Brian Warner 2007-07-07 22:20:03 -07:00
parent 8952114442
commit 135f08a518
2 changed files with 0 additions and 68 deletions

View File

@ -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>

View 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)