Changeset 192:a8fb72f9ad53
- Timestamp:
- 14/08/10 02:00:20 (3 years ago)
- Branch:
- default
- File:
-
- 1 edited
-
cyclope/core/collections/frontend_views.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cyclope/core/collections/frontend_views.py
r189 r192 64 64 is_default = True 65 65 template = "collections/category_teaser_list.html" 66 items_per_page = cyc_settings.CYCLOPE_PAGINATION['TEASER'] 67 66 68 def get_string_response(self, request, content_object=None, *args, **kwargs): 67 69 category = content_object … … 80 82 categorizations_list = category.categorizations.order_by('article__date') 81 83 82 paginator = Paginator(categorizations_list, cyc_settings.CYCLOPE_PAGINATION['TEASER'])84 paginator = Paginator(categorizations_list, self.items_per_page) 83 85 84 86 # Make sure page request is an int. If not, deliver first page. … … 112 114 template = "collections/category_labeled_icon_list.html" 113 115 is_default = False 116 items_per_page = cyc_settings.CYCLOPE_PAGINATION['LABELED_ICON'] 114 117 115 118 frontend.site.register_view(Category, CategoryLabeledIconList())
Note: See TracChangeset
for help on using the changeset viewer.

