projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc2603c
)
webish: mark read-only directories as such when listing their parent
author
Brian Warner
<warner@lothar.com>
Tue, 26 Jun 2007 19:37:00 +0000
(12:37 -0700)
committer
Brian Warner
<warner@lothar.com>
Tue, 26 Jun 2007 19:37:00 +0000
(12:37 -0700)
src/allmydata/webish.py
patch
|
blob
|
history
diff --git
a/src/allmydata/webish.py
b/src/allmydata/webish.py
index e8b518c6d40772f30d8cfdc78414056c841b2a7a..b27b7adb821a00f2a157812bef53573c77534db3 100644
(file)
--- a/
src/allmydata/webish.py
+++ b/
src/allmydata/webish.py
@@
-186,7
+186,11
@@
class Directory(rend.Page):
subdir_url = urllib.quote(name)
ctx.fillSlots("filename",
T.a(href=subdir_url)[html.escape(name)])
- ctx.fillSlots("type", "DIR")
+ if target.is_mutable():
+ dirtype = "DIR"
+ else:
+ dirtype = "DIR-RO"
+ ctx.fillSlots("type", dirtype)
ctx.fillSlots("size", "-")
ctx.fillSlots("uri", "-")
else: