web/directory.py: use "DIR-IMM" to describe immutable directories, not DIR-RO

This commit is contained in:
Brian Warner 2009-11-18 11:18:32 -08:00
parent e5452290f7
commit 834b20210a

View 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"