Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/contrib/syndication
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #13110 -- Added support for multiple enclosures in ↵Unai Zalakain2015-09-191-9/+13
| | | | | | | | | | | | | 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.
* Fixed #24728 -- Renamed mime_type to content_type for ↵Raphael Michel2015-06-041-1/+1
| | | | | | | syndication feeds Renamed the mime_type properties of RssFeed and Atom1Feed to content_type and start deprecation for the old names.
* Replaced multiple startswith in syndication/views.pyPiotr Jakimiak2015-05-081-3/+1
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-062-5/+3
|
* Deprecated passing a Context to a generic Template.render.Aymeric Augustin2015-01-121-3/+3
| | | | | | | | | | | A deprecation path is required because the return type of django.template.loader.get_template changed during the multiple template engines refactor. test_csrf_token_in_404 was incorrect: it tested the case when the hardcoded template was rendered, and that template doesn't depend on the CSRF token. This commit makes it test the case when a custom template is rendered.
* Limited lines to 119 characters in django/Tim Graham2014-09-051-1/+4
| | | | refs #23395.
* Removed locale dirs for single-message appsClaude Paroz2014-05-191-22/+0
| | | | | | Considering that these apps only translate their app name, it's not worth having a whole bunch of po files just for that. The translatable app name for those apps will be integrated in Django core catalog.
* Fixed #22070 -- Changed verbose_name for apps in ↵James Jenkins2014-03-071-1/+1
| | | | | | django.contrib to use title case Thanks bendavis78 for the report.
* Moved RequestSite and get_current_site.Aymeric Augustin2014-01-261-1/+1
| | | | | | | | | Following the app-loading refactor, these objects must live outside of django.contrib.sites.models because they must be available without importing the django.contrib.sites.models module when django.contrib.sites isn't installed. Refs #21680. Thanks Carl and Loic for reporting this issue.
* Fixed #21829 -- Added default AppConfigs.Aymeric Augustin2014-01-251-0/+1
| | | | | Thanks Russell for the report, Marc for the initial patch, Carl for the final review, and everyone who contributed to the design discussion.
* Added catalogs for apps that didn't have any translations.Aymeric Augustin2014-01-051-0/+22
|
* Fixed #21675 -- Added app configs for contrib apps.Aymeric Augustin2014-01-051-0/+8
|
* Fixed flake8 E251 violationsMilton Mazzarri2013-11-031-29/+29
|
* Refactored code and tests that relied on ↵Aymeric Augustin2013-09-091-6/+6
| | | | | | django.utils.tzinfo. Refs #17262.
* Fixed #14656 -- Added Atom1Feed `published` elementMatt Deacalion Stevens2013-07-191-3/+9
| | | | | | | | | 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`.
* Stopped using non-standard __globals__ and __code__ ↵Aymeric Augustin2013-03-171-9/+9
| | | | | | | | attributes. Some alternative implementations don't have them. Closes #19944.
* Test case and docs for custom context data in feedsZbigniew Siciarz2013-02-241-2/+14
| | | | Thanks Paul Winkler for the initial patch. (Ref #18112).
* Fixed #9800 -- Allow "isPermaLink" attribute in <guid> ↵Simon Charette2013-02-061-0/+2
| | | | | | element of an RSS item. Thanks @rtnpro for the patch!
* Fixed #7936 -- Added Last-Modified header to feedsClaude Paroz2012-09-301-0/+9
| | | | | Thanks julianb for the report and the initial patch, and Roman Gladkov for working on tests.
* Fixed syndication under python3.Alex Gaynor2012-08-151-1/+1
|
* [py3] Ported django.utils.encoding.Aymeric Augustin2012-08-071-6/+6
| | | | | | | | | | | * 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.
* [py3] Switched to Python 3-compatible introspection.Aymeric Augustin2012-07-221-4/+4
|
* Fixed #17257 - Removed outdated comment in syndication viewClaude Paroz2012-07-071-2/+1
| | | | Thanks krzysiumed for the patch.
* Fixed #18269 -- Applied unicode_literals for Python 3 ↵Claude Paroz2012-06-071-1/+3
| | | | | | | compatibility. Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
* Converted some of the built-in views to use content_type ↵Adrian Holovaty2011-12-171-1/+1
| | | | | | instead of mimetype HttpResponse argument. Refs #16519 git-svn-id: http://code.djangoproject.com/svn/django/trunk@17223 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16753 -- Supported network-path references in the ↵Aymeric Augustin2011-11-181-5/+5
| | | | | | syndication framework. Thanks cato for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17108 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Added support for time zones. Thanks Luke Plant for the ↵Aymeric Augustin2011-11-181-1/+2
| | | | | | | | | | | review. Fixed #2626. 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
* Advanced deprecations in contrib.syndication.Russell Keith-Magee2011-04-022-82/+0
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@15976 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15237 -- Always set charset of Atom1 feeds to ↵Jannis Leidel2011-02-121-2/+1
| | | | | | UTF-8. Thanks, Simon and jasonkotenko. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15505 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14176 -- Added forwards compatibility to the ↵Russell Keith-Magee2011-01-131-0/+13
| | | | | | legacy syndication feed view. This allows class-based feeds to be deployed using the old-style feed view, as long as the feed requires no arguments (i.e., get_object returns None). Thanks to psychcf for the report, cwhaines for the investigation, and Andrew Godwin for the assist. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15189 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14436 -- Escalated 1.2 PendingDeprecationWarnings ↵Russell Keith-Magee2010-10-112-2/+2
| | | | | | to DeprecationWarnings, and removed 1.1 deprecated code. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #13218 -- Ensure that syndicated content served ↵Russell Keith-Magee2010-10-081-6/+17
| | | | | | over HTTPS uses https:// links by default. Thanks to schaefer for the report, and Ben Firshman for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14007 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14386, #8960, #10235, #10909, #10608, #13845, ↵Luke Plant2010-10-041-5/+2
| | | | | | | | | | | | #14377 - standardize Site/RequestSite usage in various places. Many thanks to gabrielhurley for putting most of this together. Also to bmihelac, arthurk, qingfeng, hvendelbo, petr.pulc@s-cape.cz, Hraban for reports and some initial patches. The patch also contains some whitespace/PEP8 fixes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13980 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #12998 -- Corrected handling of time zones in ↵Russell Keith-Magee2010-03-151-15/+2
| | | | | | syndication framework. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12791 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #6188, #6304, #6618, #6969, #8758, #8989, #10334, ↵Russell Keith-Magee2010-01-282-158/+214
| | | | | | #11069, #11973 and #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
* Changed a whole bunch of places to raise exception ↵Adrian Holovaty2010-01-102-4/+4
| | | | | | instances instead of old-style raising exception classes plus a comma. Good for the future Python 3 conversion git-svn-id: http://code.djangoproject.com/svn/django/trunk@12180 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #9957: feeds now respect time zone information ↵Jacob Kaplan-Moss2009-04-071-1/+1
| | | | | | provided by the pub date. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10435 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #9555: respect the `feed_url` feed parameter. ↵Jacob Kaplan-Moss2009-04-071-1/+2
| | | | | | Thanks, sedden. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10432 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #6547, added support for GeoRSS feeds in ↵Justin Bronn2008-08-161-0/+16
| | | | | | `django.contrib.gis.feeds`; added the `feed_extra_kwargs` and `item_extra_kwargs` to the `Feed` baseclass so that it's possible for subclasses to add dynamic attributes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8414 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Added a couple of extra syndication tests, and generally ↵Jacob Kaplan-Moss2008-08-111-1/+1
| | | | | | sanitized the existing ones. Refs #6547. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8310 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Do [8221] in a slightly more clean way.Jacob Kaplan-Moss2008-08-061-12/+12
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@8222 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #8128: correctly handle feeds that incorrectly ↵Jacob Kaplan-Moss2008-08-061-3/+4
| | | | | | don't provide pubdates. Be liberal in what you accept! git-svn-id: http://code.djangoproject.com/svn/django/trunk@8221 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #7016: use correct time zones for Atom feeds. ↵Jacob Kaplan-Moss2008-08-051-1/+22
| | | | | | Thanks, Chris Cahoon. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8216 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #7847 -- Removed a whole bunch of unused imports ↵Adrian Holovaty2008-07-221-1/+1
| | | | | | from throughout the codebase. Thanks, julien git-svn-id: http://code.djangoproject.com/svn/django/trunk@8046 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #5107: swapped in RequestContext for Context in ↵Jacob Kaplan-Moss2008-03-191-3/+4
| | | | | | syndication feeds. Thanks, peter@mymart.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@7324 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Added more robust processing to parameterised ↵Malcolm Tredinnick2008-03-181-5/+10
| | | | | | | | | | syndication feeds for the case when all the "extra" URL bits are accidentally omitted. Patch from Niran Babalola <niran@niran.org>. Fixed #5855. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7295 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed `add_domain` call to use domain attribute of ↵Gary Wilson Jr2008-01-311-1/+2
| | | | | | `current_site` so the function doesn't use the string representation of `current_site`. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7051 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #6508 -- Fixed `add_domain` function to also work ↵Gary Wilson Jr2008-01-311-1/+1
| | | | | | with https feed URLs, thanks Uninen. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7050 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #3502 -- Added TTL support for RSS (not Atom) ↵Malcolm Tredinnick2007-10-201-0/+1
| | | | | | | | | feeds. Patch from jason.sidabras@gmail.com and Thomas Kerpe. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6570 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Improved syndication feed framework to use RequestSite ↵Adrian Holovaty2007-07-122-5/+10
| | | | | | if the sites framework is not installed -- i.e., the sites framework is no longer required to use the syndication feed framework. This is backwards incompatible if anybody has subclassed Feed and overridden __init__(), because the second parameter is now expected to be an HttpRequest object instead of request.path git-svn-id: http://code.djangoproject.com/svn/django/trunk@5654 bcc190cf-cafb-0310-a4f2-bffc1f526a37