Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/utils
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25668 -- Misc spelling errorsVille Skyttä2015-11-032-3/+3
|
* Fixed #25611 -- Standardized descriptor signatures.Tim Graham2015-10-262-5/+5
|
* Fixed #25571 -- Fixed boolean evaluation of ungettext_lazyClaude Paroz2015-10-221-0/+6
|
* Removed SimpleLazyObject workaround for a Python 3 bug.Tim Graham2015-10-051-5/+1
| | | | | The workaround added in fe8484efda257e151d9c1ca5151e546c9262bf0f seems unnecessary as the Python bug is fixed in Python 3.4.
* Removed obsolete (since Python 2.3) ↵Tim Graham2015-10-051-1/+0
| | | | __safe_for_unpickling__ attribute.
* Fixed #25389 -- Fixed pickling a SimpleLazyObject ↵Ben Kraft2015-10-031-25/+31
| | | | | | | | wrapping a model. Pickling a `SimpleLazyObject` wrapping a model did not work correctly; in particular it did not add the `_django_version` attribute added in 42736ac8. Now it will handle this and other custom `__reduce__` methods correctly.
* Fixed #25466 -- Added backwards compatibility aliases ↵Tim Graham2015-09-301-1/+11
| | | | | | for LoaderOrigin and StringOrigin. Thanks Simon Charette for the DeprecationInstanceCheck class.
* Removed RemovedInDjango110Warning.Tim Graham2015-09-241-5/+1
|
* Refs #23613 -- Removed django.utils.checksums per ↵Tim Graham2015-09-241-34/+0
| | | | deprecation timeline.
* Refs #23269 -- Removed the removetags template tag and ↵Tim Graham2015-09-241-29/+0
| | | | related functions per deprecation timeline.
* Refs #24526 -- Made the django logger handle INFO messages.Tim Graham2015-09-231-0/+1
| | | | | | | Without an explicit 'level', only messages at WARNING or higher are handled. This makes the config consistent with the docs which say, "The django catch-all logger sends all messages at the INFO level or higher to the console."
* Fixed #25439 -- Added `SUCCESS` style to termcolor palettesMatt Deacalion Stevens2015-09-231-0/+3
|
* Refs #13110 -- Fixed mistakes in the new multiple ↵Unai Zalakain2015-09-191-1/+1
| | | | enclosure feed tests
* Fixed #25269 -- Allowed method_decorator() to accept a ↵fabrizio ettore messina2015-09-191-4/+18
| | | | list/tuple of decorators.
* Fixed #13110 -- Added support for multiple enclosures in ↵Unai Zalakain2015-09-191-15/+37
| | | | | | | | | | | | | 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 #24496 -- Added CSRF Referer checking against ↵Matt Robenolt2015-09-161-8/+14
| | | | | | | CSRF_COOKIE_DOMAIN. Thanks Seth Gottlieb for help with the documentation and Carl Meyer and Joshua Kehn for reviews.
* Fixed #24917 -- Made admindocs display model methods ↵Zan Anderle2015-09-071-1/+52
| | | | that take arguments.
* Fixed #25297 -- Allowed makemessages to work with {% ↵Alexandre Pocquet2015-09-041-1/+8
| | | | trans %} tags that use template filters.
* Refs #25345 -- Updated links to code.google.com.Maxime Lorant2015-09-041-1/+1
|
* Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant2015-08-316-9/+0
|
* Made the autoreloader survive all exceptions.Aymeric Augustin2015-08-291-2/+1
| | | | Refs #24704.
* Fixed #24704 -- Made the autoreloader survive SyntaxErrors.Aymeric Augustin2015-08-291-1/+12
| | | | | | | | | | | | | | | | | With this change, it's expected to survive anything except errors that make it impossible to import the settings. It's too complex to fallback to a sensible behavior with a broken settings module. Harcoding things about runserver in ManagementUtility.execute is atrocious but it's the only way out of the chicken'n'egg problem: the current implementation of the autoreloader primarily watches imported Python modules -- and then a few other things that were bolted on top of this design -- but we want it to kick in even if the project contains import-time errors and django.setup() fails. At some point we should throw away this code and replace it by an off-the-shelf autoreloader that watches the working directory and re-runs `django-admin runserver` whenever something changes.
* Ensured gen_filenames() yields native strings.Aymeric Augustin2015-08-291-1/+2
| | | | | This also fixes a test failure on Python 2 when Django is installed in a non-ASCII path. This problem cannot happen on Python 3.
* Accounted for error files in the autoreloader.Aymeric Augustin2015-08-291-2/+2
| | | | | | | * When some old files contain errors, the second call to gen_filenames() should return them. * When some new files contain errors, the first call to gen_filenames(only_new=True) should return them.
* Fixed #25295 -- Restored 'no active translation' after ↵Claude Paroz2015-08-251-1/+3
| | | | | | language override Thanks David Nelson Adamec for the report and Tim Graham for the review.
* Fixed #24935 -- Refactored common conditional GET handling.Denis Cornehl2015-08-151-5/+101
|
* Fixed #24257 -- Corrected i18n handling of percent signs.Doug Beck2015-08-121-3/+2
| | | | | | | | | | | | | | | Refactored tests to use a sample project. Updated extraction: * Removed special handling of single percent signs. * When extracting messages from template text, doubled all percent signs so they are not interpreted by gettext as string format flags. All strings extracted by gettext, if containing a percent sign, will now be labeled "#, python-format". Updated translation: * Used "%%" for "%" in template text before calling gettext. * Updated {% trans %} rendering to restore "%" from "%%".
* Updated Wikipedia links to use httpsClaude Paroz2015-08-081-1/+1
|
* Fixed #25146 -- Allowed method_decorator() to decorate ↵Rigel Di Scala2015-08-011-4/+29
| | | | classes.
* Fixed #16501 -- Added an allow_unicode parameter to ↵Edward Henderson2015-07-171-4/+8
| | | | | | SlugField. Thanks Flavio Curella and Berker Peksag for the initial patch.
* Fixed #25099 -- Cleaned up HttpRequest representations ↵Vlastimil Zíma2015-07-141-6/+9
| | | | in error reporting.
* Fixed #25093 -- Added ↵darkryder2015-07-101-0/+3
| | | | utils.datastructures.OrderedSet.__len__()
* Refs #23882 -- Added detection for moved files when ↵Chris Bainbridge2015-07-071-1/+3
| | | | | | | | | | | | using inotify polling Commit 15f82c7 ("used pyinotify as change detection system when available") introduced a regression where editing a file in vim with default settings (writebackup=auto) no longer causes the dev server to be restarted. On a write, vim moves the monitored file to a backup path and then creates a new file in the original. The new file is not monitored as it has a different inode. Fixed this by also watching for inotify events IN_DELETE_SELF and IN_MOVE_SELF.
* Sorted imports in __init__.py files.Tim Graham2015-06-271-2/+3
|
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-244-12/+12
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Fixed #25000 -- Fixed cast to string for lazy objects.Marten Kenbeek2015-06-231-0/+5
| | | | | | Implemented __str__() to return the string-representation of the proxied object, not the proxy itself, if the lazy object didn't have a string-like object in its resultclasses.
* Fixed #20197 -- Made XML serializer fail loudly when ↵Claude Paroz2015-06-191-0/+12
| | | | | | outputting unserializable chars Thanks Tim Graham for the review.
* Removed support for Python 3.3.Tim Graham2015-06-184-31/+14
|
* Fixed #24979 -- Removed usage of inspect.getargspec().Tim Graham2015-06-152-0/+82
|
* Removed django.utils.functional.total_ordering()Tim Graham2015-06-151-35/+1
|
* Fixed flake8 warnings on Python 3.Tim Graham2015-06-152-2/+2
|
* Fixed #24978 -- Escaped special characters in loaddata ↵Moritz Sichert2015-06-141-0/+36
| | | | fixture paths
* Fixed #24965 -- Made LiveServerTestCase.live_server_url ↵Moritz Sichert2015-06-121-0/+12
| | | | accessible from class
* Fixed ImportError message in ↵Tomasz Kontusz2015-06-061-1/+1
| | | | utils.module_loading.import_string()
* Fixed #24927 -- Used python_2_unicode_compatible from sixMatthew Somerville2015-06-051-16/+2
|
* Fixed #19210 -- Added leap year support to ↵Raphael Michel2015-06-051-0/+5
| | | | django.utils.timesince()
* Fixed #24728 -- Renamed mime_type to content_type for ↵Raphael Michel2015-06-041-2/+22
| | | | | | | syndication feeds Renamed the mime_type properties of RssFeed and Atom1Feed to content_type and start deprecation for the old names.
* Fixed #24230 -- Added translated language name for i18n ↵Tomáš Ehrlich2015-06-021-3/+8
| | | | template tag/filter.
* Fixed #24897 -- Allowed using choices longer than 1 day ↵zauddelig2015-06-021-1/+1
| | | | with DurationField
* Fixed #24836 -- Made force_text() resolve lazy objects.Tim Graham2015-05-271-2/+2
|