comparison 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
comparison
equal deleted inserted replaced
2490:e3dfa238d68d 2491:8f054781b48a
129 129
130 if item_name in ['@NONAMEGIVEN', '']: 130 if item_name in ['@NONAMEGIVEN', '']:
131 return [], [], [] 131 return [], [], []
132 132
133 exists = flaskg.storage.has_item(item_name) 133 exists = flaskg.storage.has_item(item_name)
134
135 if not exists:
136 return [], [], []
134 137
135 user_actions_endpoints = ['frontend.quicklink_item', 'frontend.subscribe_item', ] 138 user_actions_endpoints = ['frontend.quicklink_item', 'frontend.subscribe_item', ]
136 item_navigation_endpoints = ['special.supplementation'] 139 item_navigation_endpoints = ['special.supplementation']
137 item_actions_endpoints = ['frontend.rename_item', 'frontend.delete_item', 'frontend.destroy_item', 140 item_actions_endpoints = ['frontend.rename_item', 'frontend.delete_item', 'frontend.destroy_item',
138 'frontend.download_item', 141 'frontend.download_item',