Planet Views

inyoka.planet.views

Views for the planet.

copyright:
  1. 2007-2026 by the Inyoka Team, see AUTHORS for more details.

license:

BSD, see LICENSE for more details.

class inyoka.planet.views.ArchiveIndexView(**kwargs)
get_queryset()

Return the list of items for this view.

The return value must be an iterable and may be an instance of QuerySet in which case QuerySet specific behavior will be enabled.

template_name = 'planet/archive_index.html'
class inyoka.planet.views.EntryWeekArchiveView(**kwargs)
date_field = 'pub_date'
get_queryset()

Return the list of items for this view.

The return value must be an iterable and may be an instance of QuerySet in which case QuerySet specific behavior will be enabled.

grouped_items()
template_name = 'planet/archive_week.html'
week_format = '%V'
year_format = '%G'
class inyoka.planet.views.PlanetAtomFeed
_subtitle(_)

Small helper which returns the subtitle content. Modify it in the subclass.

item_author_name(item)
item_description(item)
item_guid(item)
item_pubdate(item)
item_title(item)
item_updateddate(item)
items()
name = 'planet_feed'
title = 'ubuntuusers.local:8080 planet'
inyoka.planet.views.context_modifier(request, context)

This function is called of templated automatically to copy the list of blogs into the context.

inyoka.planet.views.export(request, export_type: str)

Export the blog list as OPML or FOAF

inyoka.planet.views.hide_entry(*args, **kwargs)

Hide a planet entry

inyoka.planet.views.index(request, *args, **kwargs)

The index function just returns the 25 latest entries of the planet.

inyoka.planet.views.suggest(request, *args, **kwargs)

A Page to suggest a new blog. It just sends an email to the planet administrators.