Controllers - DocsfeederController
Description
The DocsfeederController is responsible for generating a website section's feed. Typically, this controller is used as the href of an HTML link, like:
<link rel="alternate" href="/Feeder/[basename]" type="application/rss+xml" />
Properties
- docs (instance, initially None)
- Instance of DocumentsBase.
Methods
- index (basename=None)
- Opens the requested database (basename) and gets the relevant properties of each record within it. Responds with an RSS feed by rendering "templates/common/feeder.xml" or a 404 Not Found error page.
- _get_base (basename)
- A helper invoked by index. Tries to instantiate the `basename` DocumentsBase as `docs`.