summaryrefslogtreecommitdiff
path: root/django/utils/feedgenerator.py
AgeCommit message (Collapse)Author
2025-11-18Fixed #36733 -- Escaped attributes in Stylesheet.__str__().varunkasyap
Thanks Mustafa Barakat for the report, Baptiste Mispelon for the triage, and Jake Howard for the review.
2025-07-23Refs #36500 -- Rewrapped long docstrings and block comments via a script.django-bot
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
2025-02-18Refs #36005 -- Used datetime.UTC alias instead of datetime.timezone.utc.Mariusz Felisiak
datetime.UTC was added in Python 3.11.
2024-06-18Fixed #12978 -- Added support for RSS feed stylesheets.Baptiste Mispelon
2024-01-26Applied Black's 2024 stable style.Mariusz Felisiak
https://github.com/psf/black/releases/tag/24.1.0
2022-03-24Refs #32365 -- Removed internal uses of utils.timezone.utc alias.Carlton Gibson
Remaining test case ensures that uses of the alias are mapped canonically by the migration writer.
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-07-29Fixed 32956 -- Lowercased spelling of "web" and "web framework" where ↵David Smith
appropriate.
2021-05-27Fixed #32789 -- Made feeds emit elements with no content as self-closing tags.Mohammadreza Varasteh
2021-05-12Fixed #32366 -- Updated datetime module usage to recommended approach.Nick Pope
- Replaced datetime.utcnow() with datetime.now(). - Replaced datetime.utcfromtimestamp() with datetime.fromtimestamp(). - Replaced datetime.utctimetuple() with datetime.timetuple(). - Replaced calendar.timegm() and datetime.utctimetuple() with datetime.timestamp().
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