changeset 124:997d4a7c1b76

global history: skip items we may not access
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 14 Mar 2011 02:52:11 +0100
parents d8615f4b59e2
children db239a9ef5d0
files MoinMoin/storage/backends/indexing.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/storage/backends/indexing.py	Mon Mar 14 02:34:30 2011 +0100
+++ b/MoinMoin/storage/backends/indexing.py	Mon Mar 14 02:52:11 2011 +0100
@@ -25,7 +25,8 @@
 from MoinMoin import log
 logging = log.getLogger(__name__)
 
-from MoinMoin.storage.error import NoSuchItemError, NoSuchRevisionError
+from MoinMoin.storage.error import NoSuchItemError, NoSuchRevisionError, \
+                                   AccessDeniedError
 from MoinMoin.config import ACL, MIMETYPE, UUID, NAME, NAME_OLD, MTIME, TAGS
 
 
@@ -60,6 +61,9 @@
             try:
                 item = self.get_item(name)
                 yield item.get_revision(rev_no)
+            except AccessDeniedError, e:
+                # just skip items we may not access
+                pass
             except (NoSuchItemError, NoSuchRevisionError), e:
                 logging.exception("history processing catched exception")