diff MoinMoin/themes/__init__.py @ 2491:8f054781b48a

more defensive checking for item existence, improved generation of current_url, pep8 fixes remain
author sharky93 <rishabhr123@gmail.com>
date Sun, 15 Sep 2013 23:21:51 +0530
parents d29bfd06cd8c
children f1d470ade3c0
line wrap: on
line diff
--- a/MoinMoin/themes/__init__.py	Sun Sep 15 22:19:14 2013 +0530
+++ b/MoinMoin/themes/__init__.py	Sun Sep 15 23:21:51 2013 +0530
@@ -132,6 +132,9 @@
 
         exists = flaskg.storage.has_item(item_name)
 
+        if not exists:
+            return [], [], []
+
         user_actions_endpoints = ['frontend.quicklink_item', 'frontend.subscribe_item', ]
         item_navigation_endpoints = ['special.supplementation']
         item_actions_endpoints = ['frontend.rename_item', 'frontend.delete_item', 'frontend.destroy_item',