Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/core/signing.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #22804 -- Made an unsafe value of 'sep' in Signer ↵Tim Graham2015-09-241-4/+4
| | | | | | an exception. Per deprecation timeline.
* Fixed #22804 -- Added warning for unsafe value of 'sep' ↵David Wolever2015-07-071-1/+9
| | | | | | in Signer Thanks Jaap Roes for completing the patch.
* Fixed #21363 -- Added datetime.timedelta support to ↵Berker Peksag2014-11-151-0/+3
| | | | TimestampSigner.unsign().
* Corrected many style guide violations that the newest ↵Alex Gaynor2014-03-301-1/+1
| | | | version of flake8 catches
* Fixed many typos in comments and docstrings.Rodolfo Carvalho2014-03-031-1/+1
| | | | Thanks Piotr Kasprzyk for help with the patch.
* Fixed #19980: Signer broken for binary keys (with ↵MattBlack852014-02-161-4/+5
| | | | | | | | non-ASCII chars). With this pull request, request #878 should considered closed. Thanks to nvie for the patch.
* Fixed #21674 -- Deprecated the import_by_path() function ↵Berker Peksag2014-02-081-2/+2
| | | | | | in favor of import_string(). Thanks Aymeric Augustin for the suggestion and review.
* Fixed assorted flake8 errors.Tim Graham2013-10-111-1/+1
|
* Fixed #20687 -- Added documentation for ↵Tomáš Ehrlich2013-07-031-0/+4
| | | | | | django.core.signing API. Thanks Baptiste Mispelon for the suggestion.
* Fixed #17061 -- Factored out importing object from a ↵Claude Paroz2013-02-041-14/+2
| | | | | | dotted path Thanks Carl Meyer for the report.
* Required serializer to use bytes in loads/dumpsAymeric Augustin2012-10-281-6/+10
| | | | | | | | | | | | | | loads has no way to tell if it should provide text or bytes to the serializer; bytes are more reasonnable for a serialized representation, and are the only option for pickled data. dumps can perform conversions on the value it receives from the serializer; but for consistency it seems better to require bytes too. The current code would cause an exception when loading pickled session data. See next commit. Also fixed a bug when checking for compressed data.
* Fixed #18852 -- Restored backwards compatibilityAymeric Augustin2012-08-251-19/+29
| | | | | in django.core.signing. Specifically, kept the same return types (str/unicode) under Python 2. Related to [92b2dec918].
* [py3] Made signing infrastructure pass tests with Python 3Claude Paroz2012-08-101-10/+9
|
* [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.
* Fixed #18013 -- Use the new 'as' syntax for exceptions.Claude Paroz2012-04-291-2/+2
| | | | | Thanks Clueless for the initial patch. Note that unittest has been purposely left out (external package only used by Python 2.6).
* Fixed #18023 -- Removed bundled simplejson.Aymeric Augustin2012-04-291-4/+5
| | | | | | | And started the deprecation path for django.utils.simplejson. Thanks Alex Ogier, Clueless, and other contributors for their work on the patch.
* Fixed #16354 -- Fixed typo in signing docstring. Thanks, ↵Jannis Leidel2011-06-271-1/+1
| | | | | | charettes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16471 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16199 -- Added a Cookie based session backend. ↵Jannis Leidel2011-06-261-21/+34
| | | | | | Many thanks to Eric Florenzano for his initial work and Florian Apollaner for reviewing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16466 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16285 -- Removed a misleading comment from the ↵Jannis Leidel2011-06-261-2/+4
| | | | | | signing code, thanks PaulM. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16458 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Backed out [16356] due to later rejection of #16182.Andrew Godwin2011-06-171-7/+3
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@16426 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16182: Increase timestamp precision on ↵Andrew Godwin2011-06-101-3/+7
| | | | | | TimestampSigner. Thanks to Eric Florenzano. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16356 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16078 -- Fixed a few typos in the signing ↵Jannis Leidel2011-05-231-1/+1
| | | | | | documentation. Thanks, brutasse. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16270 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #12417 -- Added signing functionality, including ↵Jannis Leidel2011-05-211-0/+178
signing cookies. Many thanks to Simon, Stephan, Paul and everyone else involved. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16253 bcc190cf-cafb-0310-a4f2-bffc1f526a37