changeset 2548:07f3ccfdea45

fixes Issue #397: AttributeError after login 'list' object has no attribute 'meta'
author hellboy2k8 <shailrishabh@gmail.com>
date Sun, 09 Feb 2014 23:48:41 +0530
parents 50e8147a716b
children b0cce905e94d 98ab35b03176 f66a7a76c7b5
files MoinMoin/themes/__init__.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/__init__.py	Sun Feb 09 21:57:43 2014 +0530
+++ b/MoinMoin/themes/__init__.py	Sun Feb 09 23:48:41 2014 +0530
@@ -161,7 +161,9 @@
                                     label = _('Add Link')
                                     user_actions.append((endpoint, href, iconcls, label, title, True))
                             elif endpoint == 'frontend.subscribe_item':
-                                if flaskg.user.is_subscribed_to([item_name]):
+                                from MoinMoin.items import Item
+                                item = Item.create(item_name)
+                                if flaskg.user.is_subscribed_to(item):
                                     label = _('Unsubscribe')
                                 else:
                                     label = _('Subscribe')