summaryrefslogtreecommitdiff
path: root/django/utils/feedgenerator.py
AgeCommit message (Collapse)Author
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
2012-02-10Fixed #15237 (again). RSS feeds now include proper character encoding in the ↵Paul McMillan
mimetype. Thanks shadow for the report and Michal Rzechonek for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17494 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-18Added support for time zones. Thanks Luke Plant for the review. Fixed #2626.Aymeric Augustin
For more information on this project, see this thread: http://groups.google.com/group/django-developers/browse_thread/thread/cf0423bbb85b1bbf git-svn-id: http://code.djangoproject.com/svn/django/trunk@17106 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-23Fixed #14202 -- made the atom:link element optional in feeds.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17029 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-09Switch to using explicit new-style division behavior, rather than relying on ↵Alex Gaynor
teh classic behavior. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16745 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-09Fixed #15237 -- Fixed a typo in specifying UTF-8 encoding in the feed ↵Jannis Leidel
generator and signing tests. Thanks, Aymeric Augustin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16738 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-28Simplified django.utils.feedgenerator.get_tag_uri now that we don't require ↵Adrian Holovaty
Python 2.4 git-svn-id: http://code.djangoproject.com/svn/django/trunk@15930 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-12Fixed #15237 -- Always set charset of Atom1 feeds to UTF-8. Thanks, Simon ↵Jannis Leidel
and jasonkotenko. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15505 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-12Fixed #14132 -- Fixed feedgenerator to support years < 1900. Thanks, mk.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15503 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-29Fixed #10447 -- Made sure the syndication feeds helper function that returns ↵Ramiro Morales
RFC 2822-formatted datetime strings isn't affected by the current locale, removing use of strftime() because the '%a' and '%b' format specifiers are problematic in this respect. Thanks bear330 for the report and lupus for an initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15112 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-09Fixed #11509 -- Modified usage of "Web" to match our style guide in various ↵Russell Keith-Magee
documentation, comments and code. Thanks to timo and Simon Meers for the work on the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14069 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-08Fixed #3469 -- added django.utils documentation for stable bitsBrian Rosner
Thanks to Rupe and Ramiro Morales for their initial work on this patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13140 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-14Fixed a couple Python 2.4 incompatibilities.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12434 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-28Fixed #6188, #6304, #6618, #6969, #8758, #8989, #10334, #11069, #11973 and ↵Russell Keith-Magee
#12403 -- Modified the syndication framework to use class-based views. Thanks to Ben Firshman for his work on this patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12338 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-17Fixed #11066 -- Corrected 15 duplicate "the"s found in docs and code ↵Karen Tracey
comments. Thanks kaikuehne. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10801 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-15Fixed #8219 -- More robust date to string conversion in syndication feeds.Malcolm Tredinnick
(Sometimes) Affects people running in locales that use non-ASCII date strings. Patch from alperkanat. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8397 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-12Fixed #8253: fixed xmlns regression for Atom feeds, and in the process added ↵Jacob Kaplan-Moss
a hook for adding attributes specifically on the root <rss> element (for RSS feeds only, of course). Patch by Justin Bronn. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8331 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-11Added a number of callbacks to SyndicationFeed for adding custom attributes ↵Jacob Kaplan-Moss
and elements to feeds. Refs #6547. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8311 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-05Fixed #7016: use correct time zones for Atom feeds. Thanks, Chris Cahoon.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8216 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03Fixed #6303 -- Handle missing language specification in feed generation. ↵Malcolm Tredinnick
Thanks, david. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7066 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-20Fixed #3502 -- Added TTL support for RSS (not Atom) feeds. Patch fromMalcolm Tredinnick
jason.sidabras@gmail.com and Thomas Kerpe. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6570 bcc190cf-cafb-0310-a4f2-bffc1f526a37