From aac2a2d2ae2486342058db0c72ed7ba2c7c8eb1e Mon Sep 17 00:00:00 2001 From: Unai Zalakain Date: Fri, 21 Aug 2015 11:50:43 +0200 Subject: 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. --- docs/internals/deprecation.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs/internals') diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index f37ec25179..fb3dc859c3 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -94,6 +94,9 @@ details on these changes. * The ``callable_obj`` keyword argument to ``SimpleTestCase.assertRaisesMessage()`` will be removed. +* The ``enclosure`` keyword argument to ``SyndicationFeed.add_item()`` will be + removed. + .. _deprecation-removed-in-1.10: 1.10 -- cgit v1.3