X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/cf9abb6f419c407ad53036d24c36b50105adeeff..cce0cc98d6a95c2fd1517dca73ca2c3b682318f9:/apps/opds/views.py?ds=sidebyside diff --git a/apps/opds/views.py b/apps/opds/views.py index a51b5b187..7ee09be7c 100644 --- a/apps/opds/views.py +++ b/apps/opds/views.py @@ -262,7 +262,7 @@ class ByTagFeed(AcquisitionFeed): return books -@factory_decorator(logged_in_or_basicauth()) +#@factory_decorator(logged_in_or_basicauth()) class UserFeed(Feed): feed_type = OPDSFeed link = u'http://www.wolnelektury.pl/' @@ -288,8 +288,11 @@ class UserFeed(Feed): def item_description(self): return u'' +# no class decorators in python 2.5 +UserFeed = factory_decorator(logged_in_or_basicauth())(UserFeed) -@factory_decorator(logged_in_or_basicauth()) + +#@factory_decorator(logged_in_or_basicauth()) class UserSetFeed(AcquisitionFeed): def link(self, tag): return tag.get_absolute_url() @@ -306,6 +309,9 @@ class UserSetFeed(AcquisitionFeed): def items(self, tag): return Book.tagged.with_any([tag]) +# no class decorators in python 2.5 +UserSetFeed = factory_decorator(logged_in_or_basicauth())(UserSetFeed) + class SearchFeed(AcquisitionFeed): description = u"Wyniki wyszukiwania na stronie WolneLektury.pl"