From b6162681d5900e7bafec1abfa896dbb1ccd0423e Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 26 Jun 2007 12:37:00 -0700 Subject: [PATCH] webish: mark read-only directories as such when listing their parent --- src/allmydata/webish.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/allmydata/webish.py b/src/allmydata/webish.py index e8b518c6..b27b7adb 100644 --- a/src/allmydata/webish.py +++ b/src/allmydata/webish.py @@ -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: -- 2.45.2