mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 13:33:09 +00:00
web: remove more dead code
This commit is contained in:
parent
8952114442
commit
135f08a518
@ -22,14 +22,6 @@
|
|||||||
<a href="?t=xml">XML</a>
|
<a href="?t=xml">XML</a>
|
||||||
</div>
|
</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>
|
<div>
|
||||||
<table n:render="sequence" n:data="children" border="1">
|
<table n:render="sequence" n:data="children" border="1">
|
||||||
<tr n:pattern="header">
|
<tr n:pattern="header">
|
||||||
@ -55,59 +47,6 @@
|
|||||||
|
|
||||||
<div n:render="forms"/>
|
<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"/>
|
<div class="results" n:render="results"/>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
@ -29,13 +29,6 @@ class Directory(rend.Page):
|
|||||||
self._dirnode = dirnode
|
self._dirnode = dirnode
|
||||||
self._dirpath = dirpath
|
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):
|
def dirpath_as_string(self):
|
||||||
return "/" + "/".join(self._dirpath)
|
return "/" + "/".join(self._dirpath)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user