From 35aea346d3e8e37e60eba1f91bfbc23d6a8aa051 Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx <zooko@zooko.com> Date: Sat, 10 Nov 2007 16:07:05 -0700 Subject: [PATCH] don't provide the "overwrite" button if the file is readonly to you --- src/allmydata/webish.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmydata/webish.py b/src/allmydata/webish.py index afd808f5..5e9f9550 100644 --- a/src/allmydata/webish.py +++ b/src/allmydata/webish.py @@ -334,7 +334,7 @@ class Directory(rend.Page): def render_overwrite(self, ctx, data): name, target = data - if IMutableFileNode.providedBy(target): + if IMutableFileNode.providedBy(target) and not target.is_readonly(): overwrite = T.form(action=".", method="post", enctype="multipart/form-data")[ T.fieldset[ -- 2.45.2