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