diff options
| author | Unai Zalakain <unai@gisa-elkartea.org> | 2015-08-21 11:50:43 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-09-18 18:31:58 -0400 |
| commit | aac2a2d2ae2486342058db0c72ed7ba2c7c8eb1e (patch) | |
| tree | 9d36cf0b889eceb832aee1ffbeea0a826a557b22 /tests/auth_tests/urls.py | |
| parent | 71ebcb85b931f43865df5b322b2cf06d3da23f69 (diff) | |
Fixed #13110 -- Added support for multiple enclosures in Atom feeds.
The ``item_enclosures`` hook returns a list of ``Enclosure`` objects which is
then used by the feed builder. If the feed is a RSS feed, an exception is
raised as RSS feeds don't allow multiple enclosures per feed item.
The ``item_enclosures`` hook defaults to an empty list or, if the
``item_enclosure_url`` hook is defined, to a list with a single ``Enclosure``
built from the ``item_enclosure_url``, ``item_enclosure_length``, and
``item_enclosure_mime_type`` hooks.
Diffstat (limited to 'tests/auth_tests/urls.py')
0 files changed, 0 insertions, 0 deletions
