changeset 909:a61b3eb8aaa0 storage-ng

fix sitemap
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 30 Sep 2011 18:20:33 +0200
parents a31e0d2f542d
children 5b7e522d97af
files MoinMoin/apps/frontend/views.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/frontend/views.py	Fri Sep 30 18:14:04 2011 +0200
+++ b/MoinMoin/apps/frontend/views.py	Fri Sep 30 18:20:33 2011 +0200
@@ -1736,11 +1736,11 @@
     def childs(self, name):
         # does not recurse
         try:
-            item = flaskg.storage.get_item(name)
+            item = flaskg.storage[name]
         except AccessDeniedError:
             return []
-        rev = item.get_revision(-1)
-        itemlinks = rev.get(ITEMLINKS, [])
+        rev = item[CURRENT]
+        itemlinks = rev.meta.get(ITEMLINKS, [])
         return [child for child in itemlinks if self.is_ok(child)]
 
     def is_ok(self, child):