changeset 61:c33883d95699

merged MattMaker's repo
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 02 Mar 2011 00:37:27 +0100
parents cb538b13b626 (current diff) 17cb30d8905b (diff)
children 58fa9522b7d5
files
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/storage/backends/__init__.py	Wed Mar 02 00:31:42 2011 +0100
+++ b/MoinMoin/storage/backends/__init__.py	Wed Mar 02 00:37:27 2011 +0100
@@ -18,7 +18,6 @@
 from MoinMoin.error import ConfigurationError
 from MoinMoin.storage.backends import router, fs, fs2, fs19, memory
 
-
 CONTENT = 'content'
 USERPROFILES = 'userprofiles'
 TRASH = 'trash'
--- a/MoinMoin/storage/backends/fs19.py	Wed Mar 02 00:31:42 2011 +0100
+++ b/MoinMoin/storage/backends/fs19.py	Wed Mar 02 00:37:27 2011 +0100
@@ -548,6 +548,7 @@
             if meta['__rev'] == revno:
                 break
         else:
+            self.to_begin()
             raise KeyError
         del meta['__rev']
         meta = dict([(k, v) for k, v in meta.items() if v]) # remove keys with empty values
@@ -564,6 +565,7 @@
                 meta[EXTRA] == attachname):
                 break
         else:
+            self.to_end()
             raise KeyError
         del meta['__rev']
         del meta[EXTRA] #  we have full name in NAME