]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
webish: mark read-only directories as such when listing their parent
authorBrian Warner <warner@lothar.com>
Tue, 26 Jun 2007 19:37:00 +0000 (12:37 -0700)
committerBrian Warner <warner@lothar.com>
Tue, 26 Jun 2007 19:37:00 +0000 (12:37 -0700)
src/allmydata/webish.py

index e8b518c6d40772f30d8cfdc78414056c841b2a7a..b27b7adb821a00f2a157812bef53573c77534db3 100644 (file)
@@ -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: