From: Zooko O'Whielacronx Date: Sat, 10 Nov 2007 23:07:05 +0000 (-0700) Subject: don't provide the "overwrite" button if the file is readonly to you X-Git-Tag: allmydata-tahoe-0.7.0~224 X-Git-Url: https://git.rkrishnan.org/specifications/something?a=commitdiff_plain;h=35aea346d3e8e37e60eba1f91bfbc23d6a8aa051;p=tahoe-lafs%2Ftahoe-lafs.git don't provide the "overwrite" button if the file is readonly to you --- 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[