From 834b20210ac371945113cda8c18161fa6d369a27 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Wed, 18 Nov 2009 11:18:32 -0800 Subject: [PATCH] web/directory.py: use "DIR-IMM" to describe immutable directories, not DIR-RO --- src/allmydata/web/directory.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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" -- 2.45.2