summaryrefslogtreecommitdiff
path: root/django/utils/feedgenerator.py
AgeCommit message (Collapse)Author
2019-01-02Used 4 space hanging indent for dictionaries.Tim Graham
Thanks Mariusz Felisiak for auditing.
2018-09-26Refs #29784 -- Switched to https:// links where available.Jon Dufresne
2018-07-26Refs #29600 -- Removed datetime_safe usage in feedgenerator.Tim Graham
The only effect would be if items in Atom feeds had a published date year of < 1000 (ensuring those years are padded with leading zeros).
2018-06-28Fixed #29514 -- Reverted "Used datetime.timezone.utc instead of pytz.utc for ↵Tim Graham
better performance." This reverts commit 27ca5ce19f5f184018a61611c1bc319113b1d107 due to a regression.
2018-03-20Used datetime.timezone.utc instead of pytz.utc for better performance.Sergey Fedoseev
2018-01-05Simplified django.utils.feedgenerator.rfc2822_date().Sergey Fedoseev
2018-01-05Simplified django.utils.feedgenerator.rfc3339_date().Sergey Fedoseev
2018-01-03Fixed #28982 -- Simplified code with and/or.Дилян Палаузов
2017-12-11Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.Nick Pope
2017-10-13Updated email.Util (Python 2) references to email.utils (Python 3).Tim Graham
2017-04-27Refs #27795 -- Replaced force_text() with str() in feed generatorsClaude Paroz
2017-02-24Fixed #27879 -- Fixed crash if enclosures aren't provided to ↵Pavlo Kapyshin
Atom1Feed.add_item(). Regression in 75cf9b5ac031feb8f94271c9906157c921a14520
2017-02-11Refs #27656 -- Updated django.utils docstring verbs according to PEP 257.Anton Samarchyan
2017-01-26Refs #23919, #27778 -- Removed obsolete mentions of unicode.Vytis Banaitis
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-17Refs #13110 -- Removed SyndicationFeed.add_item()'s enclosure argument.Tim Graham
Per deprecation timeline.
2017-01-17Refs #24728 - Removed Atom1Feed/RssFeed mime_type attribute.Tim Graham
Per deprecation timeline.
2016-11-14Fixed E305 flake8 warnings.Ramin Farajpour Cami
2016-05-30Fixed #26653 -- Made SyndicationFeed.latest_post_date() return time in UTC.Ketan Bhatt
2016-04-08Fixed E128 flake8 warnings in django/.Tim Graham
2016-01-25Fixed #26125 -- Fixed E731 flake warnings.userimack
2015-09-19Refs #13110 -- Fixed mistakes in the new multiple enclosure feed testsUnai Zalakain
2015-09-18Fixed #13110 -- Added support for multiple enclosures in Atom feeds.Unai Zalakain
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.
2015-06-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
2015-06-04Fixed #24728 -- Renamed mime_type to content_type for syndication feedsRaphael Michel
Renamed the mime_type properties of RssFeed and Atom1Feed to content_type and start deprecation for the old names.
2015-05-02Optimized two functions slightly.Aymeric Augustin
This avoids calling date.tzinfo.utcoffset(date) twice. It's also robust to cases where that function returns None -- which never happens in practice :-)
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-09-05Limited lines to 119 characters in django/Tim Graham
refs #23395.
2013-11-28Fixed E125 pep8 warningsChristopher Medrela
2013-11-02Correct flake8 E302 violationsRay Ashman Jr
2013-11-02More attacking E302 violatorsAlex Gaynor
2013-11-01Fixed spelling ("dependant" -> "dependent")Tim Graham
Dependent means reliant on. A dependant is a person like a child or spouse. Thanks Andrew Wilcox for the report.
2013-10-23Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol
2013-09-22Removed a few trailing backslashes.Aymeric Augustin
We have always been at war with trailing backslashes.
2013-09-10Fixed #20841 -- Added messages to NotImplementedErrorsGregor MacGregor
Thanks joseph at vertstudios.com for the suggestion.
2013-09-05Took advantage of django.utils.six.moves.urllib.*.Aymeric Augustin
2013-09-02Replaced "not PY3" by "PY2", new in six 1.4.0.Aymeric Augustin
2013-07-19Fixed #14656 -- Added Atom1Feed `published` elementMatt Deacalion Stevens
Some feed aggregators make use of the `published` element as well as the `updated` element (within the Atom standard -- http://bit.ly/2YySb). The standard allows for these two elements to be present in the same entry. `Atom1Feed` had implemented the `updated` element which was incorrectly taking the date from `pubdate`.
2013-02-06Fixed #9800 -- Allow "isPermaLink" attribute in <guid> element of an RSS item.Simon Charette
Thanks @rtnpro for the patch!
2012-08-07[py3] Ported django.utils.feedgenerator.Aymeric Augustin
2012-08-07[py3] Ported django.utils.encoding.Aymeric Augustin
* Renamed smart_unicode to smart_text (but kept the old name under Python 2 for backwards compatibility). * Renamed smart_str to smart_bytes. * Re-introduced smart_str as an alias for smart_text under Python 3 and smart_bytes under Python 2 (which is backwards compatible). Thus smart_str always returns a str objects. * Used the new smart_str in a few places where both Python 2 and 3 want a str.
2012-07-22[py3] Updated urllib/urllib2/urlparse imports.Aymeric Augustin
Lots of functions were moved. Use explicit imports in all cases to keey it easy to identify where the functions come from.
2012-07-14Update links to diveintomark.org.Aymeric Augustin
These pages are gone.
2012-06-07Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
2012-05-05Replaced cStringIO.StringIO by io.BytesIO.Claude Paroz
Also replaced StringIO.StringIO by BytesIO in some other appropriate places. StringIO is not available in Python 3.
2012-05-05Fixed the syntax used for the Python repl examples in docs and docstrings.Alex Gaynor
2012-05-05Made more extensive usage of context managers with open.Claude Paroz