Utils Feeds

inyoka.utils.feeds

Utils for creating an atom feed.

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

license:

BSD, see LICENSE for more details.

class inyoka.utils.feeds.InyokaAtomFeed
MODES = frozenset({'full', 'short', 'title'})
_check_content_mode(kwargs)
_check_item_count(kwargs)
_shorten_html(html)
_subtitle(obj)

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

feed_type

alias of Atom1Feed

get_object(request, *args, **kwargs)
subtitle(obj)

Removes HTML tags in subtitle (otherwise they will be escaped). For customization use _subtitle.

supports_modes = True