Views for Zinnia
Views for Zinnia authors
Bases: zinnia.views.mixins.templates.EntryQuerysetTemplateResponseMixin, zinnia.views.mixins.prefetch_related.PrefetchCategoriesAuthorsMixin, zinnia.views.authors.BaseAuthorDetail, django.views.generic.list.BaseListView
Detailed view for an Author combinating these mixins:
The model name is the author’s username.
Bases: django.views.generic.list.ListView
View returning a list of all published authors.
Return a queryset of published authors, with a count of their entries published.
Bases: object
Mixin providing the behavior of the author detail view, by returning in the context the current author and a queryset containing the entries written by author.
Add the current author in context.
Retrieve the author by his username and build a queryset of his published entries.
Views for Zinnia archives
Bases: zinnia.views.mixins.archives.ArchiveMixin, zinnia.views.mixins.archives.PreviousNextPublishedMixin, zinnia.views.mixins.prefetch_related.PrefetchCategoriesAuthorsMixin, zinnia.views.mixins.callable_queryset.CallableQuerysetMixin, zinnia.views.mixins.templates.EntryQuerysetArchiveTemplateResponseMixin
Mixin combinating:
Bases: zinnia.views.mixins.tz_fixes.EntryDayTZFix, zinnia.views.archives.EntryArchiveMixin, django.views.generic.dates.BaseDayArchiveView
View returning the archive for a day.
Bases: zinnia.views.archives.EntryArchiveMixin, zinnia.views.mixins.templates.EntryQuerysetArchiveTodayTemplateResponseMixin, django.views.generic.dates.BaseArchiveIndexView
View returning the archive index.
Bases: zinnia.views.mixins.tz_fixes.EntryMonthTZFix, zinnia.views.archives.EntryArchiveMixin, django.views.generic.dates.BaseMonthArchiveView
View returning the archives for a month.
Bases: zinnia.views.mixins.tz_fixes.EntryDayTZFix, zinnia.views.archives.EntryArchiveMixin, django.views.generic.dates.BaseTodayArchiveView
View returning the archive for the current day.
Return (date_list, items, extra_context) for this request. And defines self.year/month/day for EntryQuerysetArchiveTemplateResponseMixin.
Bases: zinnia.views.mixins.tz_fixes.EntryWeekTZFix, zinnia.views.archives.EntryArchiveMixin, django.views.generic.dates.BaseWeekArchiveView
View returning the archive for a week.
Override get_dated_items to add a useful ‘week_end_day’ variable in the extra context of the view.
Bases: zinnia.views.archives.EntryArchiveMixin, django.views.generic.dates.BaseYearArchiveView
View returning the archives for a year.
Views for Zinnia categories
Bases: object
Mixin providing the behavior of the category detail view, by returning in the context the current category and a queryset containing the entries published under it.
Add the current category in context.
Retrieve the category by his path and build a queryset of her published entries.
Bases: zinnia.views.mixins.templates.EntryQuerysetTemplateResponseMixin, zinnia.views.mixins.prefetch_related.PrefetchCategoriesAuthorsMixin, zinnia.views.categories.BaseCategoryDetail, django.views.generic.list.BaseListView
Detailed view for a Category combinating these mixins:
The model name is the category’s slug.
Bases: django.views.generic.list.ListView
View returning a list of all the categories.
Retrieve a Category instance by a path
Views for Zinnia capabilities
Bases: zinnia.views.mixins.mimetypes.TemplateMimeTypeView
Base view for the weblog capabilities
Populate the context of the template with technical informations for building urls
Bases: zinnia.views.capabilities.CapabilityView
Bases: zinnia.views.capabilities.CapabilityView
Bases: zinnia.views.capabilities.CapabilityView
http://en.wikipedia.org/wiki/Really_Simple_Discovery
Bases: zinnia.views.capabilities.CapabilityView
http://msdn.microsoft.com/en-us/library/bb463260.aspx
Views for Zinnia channels
Bases: object
Mixin for displaying a custom selection of entries based on a search query, useful to build SEO/SMO pages aggregating entries on a thematic or for building a custom homepage.
Add query in context.
Override the get_queryset method to build the queryset with entry matching query.
Bases: zinnia.views.mixins.prefetch_related.PrefetchCategoriesAuthorsMixin, zinnia.views.channels.BaseEntryChannel, django.views.generic.list.ListView
Channel view for entries combinating these mixins:
Views for Zinnia comments
Bases: django.views.generic.base.TemplateResponseMixin, django.views.generic.base.View
View for handing the publication of a Comment on an Entry. Do a redirection if the comment is visible, else render a confirmation template.
Views for Zinnia entries
Bases: zinnia.views.mixins.tz_fixes.EntryDateDetailTZFix, zinnia.views.mixins.archives.ArchiveMixin, zinnia.views.mixins.templates.EntryArchiveTemplateResponseMixin, zinnia.views.mixins.callable_queryset.CallableQuerysetMixin, django.views.generic.dates.BaseDateDetailView
Mixin combinating:
Return entries published on current site
Bases: zinnia.views.mixins.entry_protection.EntryProtectionMixin, zinnia.views.entries.EntryDateDetail
Detailled view archive view for an Entry with password and login protections
Views for Zinnia quick entry
Bases: django.views.generic.base.View
View handling the quick post of a short Entry
Decorate the view dispatcher with permission_required
GET only do a redirection to the admin for adding and entry
Handle the datas for posting a quick entry, and redirect to the admin in case of error or to the entry’s page in case of success
Bases: django.forms.models.ModelForm
Form for posting an entry quickly
Views for Zinnia entries search
Bases: object
Mixin providing the behavior of the entry search view, by returning in the context the pattern searched, the error if something wrong has happened and finally the the queryset of published entries matching the pattern.
Add error and pattern in context.
Overridde the get_queryset method to do some validations and build the search queryset.
Bases: zinnia.views.mixins.prefetch_related.PrefetchCategoriesAuthorsMixin, zinnia.views.search.BaseEntrySearch, django.views.generic.list.ListView
Search view for entries combinating these mixins:
Views for Zinnia sitemap
Bases: django.views.generic.base.TemplateView
Sitemap view of the blog
Populate the context of the template with all published entries and all the categories
Views for Zinnia shortlink
Bases: django.views.generic.base.RedirectView
View for handling the shortlink of an Entry, simply do a redirection
Get entry corresponding to ‘pk’ and return the get_absolute_url of the entry
Views for Zinnia tags
Bases: object
Mixin providing the behavior of the tag detail view, by returning in the context the current tag and a queryset containing the entries published with the tag.
Add the current tag in context.
Retrieve the tag by his name and build a queryset of his published entries.
Bases: zinnia.views.mixins.templates.EntryQuerysetTemplateResponseMixin, zinnia.views.mixins.prefetch_related.PrefetchCategoriesAuthorsMixin, zinnia.views.tags.BaseTagDetail, django.views.generic.list.BaseListView
Detailed view for a Tag combinating these mixins:
The model name is the tag slugified.
Bases: django.views.generic.list.ListView
View return a list of all published tags.
Return a queryset of published tags, with a count of their entries published.
Views for Zinnia trackback
Bases: zinnia.views.mixins.mimetypes.TemplateMimeTypeView
View for handling trackbacks on the entries
Decorate the view dispatcher with csrf_exempt
GET only do a permanent redirection to the Entry
Retrieve the Entry trackbacked
Check if an URL is provided and if trackbacks are enabled on the Entry. If so the URL is registered one time as a trackback