]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
web/directory.py: use "DIR-IMM" to describe immutable directories, not DIR-RO
authorBrian Warner <warner@lothar.com>
Wed, 18 Nov 2009 19:18:32 +0000 (11:18 -0800)
committerBrian Warner <warner@lothar.com>
Wed, 18 Nov 2009 19:18:32 +0000 (11:18 -0800)
src/allmydata/web/directory.py

index e554479b77c5db5852b16ec981150cb30cfdfdbf..b4fe195ec078e9a1ab85cf1953016ec4d78564e2 100644 (file)
@@ -703,7 +703,9 @@ class DirectoryAsHTML(rend.Page):
             uri_link = "%s/uri/%s/" % (root, urllib.quote(writecap))
             ctx.fillSlots("filename",
                           T.a(href=uri_link)[html.escape(name)])
-            if target.is_readonly():
+            if not target.is_mutable():
+                dirtype = "DIR-IMM"
+            elif target.is_readonly():
                 dirtype = "DIR-RO"
             else:
                 dirtype = "DIR"