changeset 447:16bd4f3dbab8

fix fs19 crash if a user has no subscribed pages
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 18 Aug 2011 18:00:12 +0200
parents d9845a326f12
children 3d3230f84e5f
files MoinMoin/storage/backends/fs19.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/storage/backends/fs19.py	Thu Aug 18 17:53:11 2011 +0200
+++ b/MoinMoin/storage/backends/fs19.py	Thu Aug 18 18:00:12 2011 +0200
@@ -729,7 +729,7 @@
         metadata[MTIME] = int(float(metadata.get('last_saved', '0')))
 
         # rename subscribed_pages to subscribed_items
-        metadata['subscribed_items'] = metadata['subscribed_pages']
+        metadata['subscribed_items'] = metadata.get('subscribed_pages', [])
 
         # convert bookmarks from usecs (and str) to secs (int)
         metadata['bookmarks'] = [(interwiki, int(long(bookmark)/1000000))