1.1 --- a/WebStack/Repositories/Directory.py Fri Jun 15 22:13:59 2007 +0000
1.2 +++ b/WebStack/Repositories/Directory.py Fri Jun 15 22:14:27 2007 +0000
1.3 @@ -238,21 +238,8 @@
1.4
1.5 "Remove the file associated with the given 'key'."
1.6
1.7 - path = self.full_path(key)
1.8 - edit_path = self.edit_path(key)
1.9 - if os.path.exists(path):
1.10 - self.lock(key)
1.11 -
1.12 - if os.path.exists(edit_path):
1.13 - while 1:
1.14 - try:
1.15 - self.remove_resource(edit_path)
1.16 - except OSError:
1.17 - time.sleep(self.delay)
1.18 - else:
1.19 - break
1.20 - else:
1.21 - raise KeyError, key
1.22 + edit_path = self.lock(key)
1.23 + self.remove_resource(edit_path)
1.24
1.25 def __getitem__(self, key):
1.26