From: Brian Warner Date: Wed, 18 Nov 2009 19:18:32 +0000 (-0800) Subject: web/directory.py: use "DIR-IMM" to describe immutable directories, not DIR-RO X-Git-Url: https://git.rkrishnan.org/Site/Content/Exhibitors/running.html?a=commitdiff_plain;h=834b20210ac371945113cda8c18161fa6d369a27;p=tahoe-lafs%2Ftahoe-lafs.git web/directory.py: use "DIR-IMM" to describe immutable directories, not DIR-RO --- diff --git a/src/allmydata/web/directory.py b/src/allmydata/web/directory.py index e554479b..b4fe195e 100644 --- a/src/allmydata/web/directory.py +++ b/src/allmydata/web/directory.py @@ -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"