Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/views/decorators
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant2015-08-311-3/+0
|
* Fixed #24935 -- Refactored common conditional GET handling.Denis Cornehl2015-08-151-68/+8
|
* Fixed typos in HTTP decorator docs.I am Clinton2015-05-251-3/+3
|
* Removed unnecessary arguments in .get method callsPiotr Jakimiak2015-05-131-2/+2
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-065-8/+17
|
* Fixed #22461 -- Added if-unmodified-since support to the ↵Thomas Tanner2014-12-241-29/+35
| | | | condition decorator.
* Fixed #23695 -- Made condition decorator work for HEAD ↵Anton Novosyolov2014-10-211-1/+1
| | | | requests without ETag.
* Limited lines to 119 characters in django/Tim Graham2014-09-051-1/+3
| | | | refs #23395.
* 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.
* Correct flake8 E302 violationsRay Ashman Jr2013-11-032-0/+5
|
* Fixed #21285 -- Fixed E121,E122 pep8 warningsAlasdair Nicol2013-10-181-2/+3
|
* Whitespace cleanup.Tim Graham2013-10-101-1/+0
| | | | | | | * Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
* Fixed #18923 -- Corrected usage of ↵Tim Graham2013-08-021-0/+6
| | | | | | sensitive_post_parameters in contrib.auth Thanks Collin Anderson for the report.
* Removed several unused imports.Aymeric Augustin2013-06-191-2/+0
|
* Fixed #19436 -- Don't log warnings in ensure_csrf_cookie.Olivier Sels2013-05-181-1/+1
|
* Fixed #19453 -- Ensured that the decorated function's ↵Julien Phalip2012-12-311-2/+2
| | | | | arguments are obfuscated in the @sensitive_variables decorator's frame, in case the variables associated with those arguments were meant to be obfuscated from the decorated function's frame. Thanks to vzima for the report.
* Removed csrf_response_exempt and csrf_view_exempt.Aymeric Augustin2012-12-291-18/+0
|
* Removed legacy ways of calling cache_page.Aymeric Augustin2012-12-291-43/+6
|
* Made more extensive use of get_current_siteClaude Paroz2012-09-281-1/+1
| | | | Refs #15089
* Imported getLogger directly from logging moduleClaude Paroz2012-09-201-2/+2
| | | | This was a remainder of some 2.4 compatibility code.
* Fixed #17138 -- Made the sensitive_variables decorator ↵Julien Phalip2012-06-041-6/+6
| | | | work with object methods.
* Fixed #18042 -- Advanced deprecation warnings.Aymeric Augustin2012-05-032-4/+4
| | | | Thanks Ramiro for the patch.
* Fixed #17643 -- Set a better stack level for the ↵Jannis Leidel2012-02-091-1/+2
| | | | | | cache_page decorator deprecation warnings. Thanks, zsiciarz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17484 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #17358 -- Updated logging calls to use official ↵Jannis Leidel2012-02-091-3/+3
| | | | | | syntax for arguments instead of string interpolation. Thanks, spulec. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17480 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15840 -- Wrapped inner function of the condition ↵Jannis Leidel2012-02-091-0/+1
| | | | | | decorator with functools.wraps to follow best practices. Thanks, zsiciarz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17470 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16225 -- Removed unused imports. Many thanks to ↵Jannis Leidel2011-07-131-1/+0
| | | | | | Aymeric Augustin for the work on the patch and Alex for reviewing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14614 - filtering of sensitive information in 500 ↵Luke Plant2011-06-091-0/+71
| | | | | | | | | | | | | | error reports. This adds a flexible mechanism for filtering what request/traceback information is shown in 500 error emails and logs. It also applies screening to some views known to be sensitive e.g. views that handle passwords. Thanks to oaylanc for the report and many thanks to Julien Phalip for the patch and the rest of the work on this. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16339 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Deprecated legacy ways of calling cache_pageLuke Plant2011-06-081-0/+11
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@16338 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14261 - Added clickjacking protection ↵Luke Plant2011-05-311-0/+64
| | | | | | | | (X-Frame-Options header) Many thanks to rniemeyer for the patch! git-svn-id: http://code.djangoproject.com/svn/django/trunk@16298 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15354 - provide method to ensure CSRF token is ↵Luke Plant2011-05-091-1/+21
| | | | | | | | always available for AJAX requests Thanks to sayane for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16192 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Replaced old-style with new-style decorator syntax.Jannis Leidel2011-05-013-5/+10
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@16138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15637 -- Added a require_safe decorator for views ↵Jannis Leidel2011-04-281-0/+3
| | | | | | to accept GET or HEAD. Thanks, aaugustin and Julien. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16115 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Deprecated csrf_response_exempt and csrf_view_exempt ↵Luke Plant2011-03-301-15/+14
| | | | | | | | | decorators With the removal of CsrfResponseMiddleware, csrf_response_exempt serves no purposes, and csrf_exempt and csrf_view_exempt perform the same function. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15956 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Removed a bunch more Python 2.4 workarounds now that we ↵Adrian Holovaty2011-03-284-20/+4
| | | | | | don't support that version. Refs #15702 -- thanks to jonash for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #717 - If-Modified-Since handling should compare ↵Luke Plant2011-03-011-8/+10
| | | | | | | | | dates according to RFC 2616 Thanks to Maniac for the report, julienb for the initial patch, and especially to aaugustin for the final patch and tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15696 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14929 -- Move gzip_page docstring to the right ↵Andrew Godwin2011-01-081-2/+1
| | | | | | place. Thanks adamv. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15161 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fix a small docstring bug in the CSRF decorators.Andrew Godwin2010-12-221-1/+1
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@15026 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #11675 -- Added support for the PyLibMC cache ↵Russell Keith-Magee2010-12-211-6/+7
| | | | | | library. In order to support this, and clean up some other 1.3 caching additions, this patch also includes some changes to the way caches are defined. This means you can now have multiple caches, in the same way you have multiple databases. A huge thanks to Jacob Burch for the work on the PyLibMC backend, and to Jannis for his work on the cache definition changes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15005 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14737 -- Moved the docstring comment for the ↵Russell Keith-Magee2010-12-041-13/+13
| | | | | | cache_page decorator so it gets picked up as a docstring. Thanks to adamv for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14798 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14565 - No csrf_token on 404 page.Luke Plant2010-10-281-0/+16
| | | | | | This solution doesn't have the negative side-effects of [14356]. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14377 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14406 -- Added a Python 2.4 compatibility to the ↵Russell Keith-Magee2010-10-061-2/+2
| | | | | | logging interface. Thanks to Łukasz Rekucki for the report, and to Luke Plant for original patch this was based on. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13989 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #12012 -- Added support for logging. Thanks to ↵Russell Keith-Magee2010-10-041-1/+22
| | | | | | Vinay Sajip for his draft patch, and to the many people who gave feedback during development of the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13981 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #12019 - backwards compatibility issues with ↵Luke Plant2010-09-211-2/+11
| | | | | | | | cache_page decorator. Thanks to rokclimb15 for the report, and j4mie/rokclimb15 for the patches. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13864 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #12164 -- Removed the Python 2.3 compatibility ↵Russell Keith-Magee2010-05-044-4/+4
| | | | | | imports and workarounds. Thanks to timo and claudep for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13094 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #13093 -- Updated some decorators and the ↵Russell Keith-Magee2010-03-124-10/+12
| | | | | | decorator_from_middleware function to allow callable classes to be decorated. Thanks to Brian Neal for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12762 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #12804 - regression with decorating admin views.Luke Plant2010-02-091-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is a BACKWARDS INCOMPATIBLE change, because it removes the flawed 'auto_adapt_to_methods' decorator, and replaces it with 'method_decorator' which must be applied manually when necessary, as described in the 1.2 release notes. For users of 1.1 and 1.0, this affects the decorators: * login_required * permission_required * user_passes_test For those following trunk, this also affects: * csrf_protect * anything created with decorator_from_middleware If a decorator does not depend on the signature of the function it is supposed to decorate (for example if it only does post-processing of the result), it will not be affected. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12399 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Moved contrib.csrf.* to core code.Luke Plant2009-10-271-0/+47
| | | | | | | | | | | | There is stub code for backwards compatiblity with Django 1.1 imports. The documentation has been updated, but has been left in docs/contrib/csrf.txt for now, in order to avoid dead links to documentation on the website. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11661 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Added 'key_prefix' keyword argument to cache_page()Luke Plant2009-09-281-4/+10
| | | | | | | | | | This was available before r11586, but undocumented. It has now been re-added with documentation and explicit support, as it seems like a useful feature and people were using it before. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11595 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Corrected regressions introduced in r11586 and r11593Luke Plant2009-09-261-6/+10
| | | | | | | I read the order of arguments in the docs incorrectly, doh! git-svn-id: http://code.djangoproject.com/svn/django/trunk@11594 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Improved error messages when people use cache_page in ↵Luke Plant2009-09-241-1/+6
| | | | | | undocumented and now unsupported ways. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11593 bcc190cf-cafb-0310-a4f2-bffc1f526a37