Claude Paroz
fa90ef250f
[1.5.x] Imported copyreg from six.moves
2013-05-21 10:21:52 -07:00
Daniel Lindsley
cb9aaac91f
[1.5.x] Fixed #20212 - __reduce__ should only be defined for Py3+.
2013-05-21 10:17:27 -07:00
Gavin Wahl
d1b7bd030b
[1.5.x] Fixed spelling errors
...
Backport of ec04fd1344
from master
2013-03-29 08:00:24 -04:00
Claude Paroz
deec020bf5
[1.5.x] Fixed #20108 -- Fixed filepath_to_uri decoding error
...
This was a regression due to unicode_literals usage. Thanks Ivan
Virabyan for the report and the initial patch.
Backport of 164528acc8
from master.
2013-03-22 17:58:36 +01:00
Marc Tamlyn
dd897e4eeb
[1.5.x] Fixed #20094 - Be more careful when checking for Iterator
...
Python 2.6 has some different behaviour when checking
isinstance(foo, collections.Iterator).
Backport of 829dc3c5
from master.
2013-03-22 17:45:41 +01:00
Aymeric Augustin
2757d492bb
[1.5.x] Updated bundled version of six.
...
Backport of e11ccc76d3
.
2013-03-17 16:05:30 +01:00
Florian Apolloner
f96d2848c6
[1.5.x] Updated our six module to follow upstream changes.
...
This includes fixes for the java/jython detection and a new license header.
Thanks to Thomas Bartelmess for the report.
Backport of c5ce0e8a68
from master.
2013-03-17 16:05:19 +01:00
Łukasz Langa
bbe8205693
[py3] Always fed hashlib with bytes.
2013-02-27 10:03:33 +01:00
Aymeric Augustin
702d39921c
[1.5.x] Fixed #19634 -- Added proper __hash__ methods.
...
Classes overriding __eq__ need a __hash__ such that equal objects have
the same hash.
Thanks akaariai for the report and regebro for the patch.
Backport of e76147a
from master.
2013-02-25 23:37:23 +01:00
Claude Paroz
20ac33100c
Partially revert 9efe1a721
, strip_tags improvements
...
The new regex seems not stable enough for being released. Stripping
with regex might need reevaluation for the next release.
Refs #19237 .
2013-02-06 21:19:41 +01:00
Aymeric Augustin
db49b6d2b2
[1.5.x] Fixed #19708 -- Exception in timezone.override(None).
...
Thanks rafales.
Backport of 9a4a1ce
.
2013-01-31 16:02:03 +01:00
Tim Graham
42fcfcaa52
[1.5.x] Fixed #19577 - Added HTML escaping to admin examples.
...
Thanks foo@ for the report and Florian Apolloner for the review.
Backport of eafc036476
from master
2013-01-25 06:56:38 -05:00
Florian Apolloner
ef98ae2910
[1.5.X] Fixed #19204 -- Replaced python2-style exception syntax.
...
Thanks to garrison for the report and patch.
Backport of 4a71b84266
from master
2012-12-24 14:06:47 +01:00
Tim Graham
53b40d75b7
[1.5.X] Fixed #18718 - Documented django.utils.encoding.filepath_to_uri
...
Backport of 507c081484
from master
2012-12-16 14:40:10 -05:00
Florian Apolloner
fce1fa0f7f
[1.5.X] Fixed #18856 -- Ensured that redirects can't be poisoned by malicious users.
2012-12-10 22:13:28 +01:00
Claude Paroz
4214a22e06
[1.5.x] Fixed #19357 -- Allow non-ASCII chars in filesystem paths
...
Thanks kujiu for the report and Aymeric Augustin for the review.
Backport of c91667338
from master.
2012-12-08 11:16:03 +01:00
Claude Paroz
1b93499849
[1.5.x] Fixed #19015 -- Add ISO input formats to all formats
...
Backport of 349c4c37f8
from master.
2012-12-01 15:43:38 +01:00
Chris Khoo
9efe1a7210
[1.5.x] Fixed #19237 -- Improved strip_tags utility
...
The previous pattern didn't properly addressed cases where '>'
was present inside quoted tag content.
Backport of bf1871d87
from master.
2012-11-24 12:20:41 +01:00
Preston Holmes
0d49fdb573
[1.5.x] Fixed #18985 -- made DeprecationWarnings loud
...
Capture warnings in Python >= 2.7 and route through
console handler, which is subject to DEBUG==True
Thanks to dstufft for the idea, and claudep for initial patch
2012-11-16 17:08:02 -08:00
Claude Paroz
ebafba50a4
[1.5.x] Fixed #19272 -- Fixed gettext_lazy returned type on Python 2
...
Thanks tyrion for the report.
Backport of 550ddc66b
from master.
2012-11-14 10:55:12 +01:00
Anssi Kääriäinen
538d6c0fcd
Some changes to SortedDict to make it faster under py2
...
Refs #19276
2012-11-13 23:01:25 +02:00
Aymeric Augustin
d7688a010a
[1.5.x] Fixed #18963 -- Used a subclass-friendly pattern
...
for Python 2 object model compatibility methods.
Backport of fc10418
from master.
2012-11-03 22:08:05 +01:00
Andrew Godwin
f1be2c7a81
Fixed #19070 -- urlize filter no longer raises exceptions on 2.7
...
Thanks to claudep for the patch.
2012-10-31 11:01:39 +00:00
Ian Clelland
b430e1db5f
[1.5.x] Properly support pickling of LazyObjects in Python 3.3
...
Backport of 836cd26d7f3394452f1f5196eb26c99fef128a1a from master
2012-10-26 02:40:19 +01:00
Aymeric Augustin
9edec9e75d
[1.5.x] Ensured get_version returns a native string.
...
Returning unicode triggers a bug in Python 2.7:
http://bugs.python.org/issue11638
This problem was introduced in 4a103086
(unicode_literals).
Backport of 45c8818
from master.
2012-10-25 21:49:57 +02:00
Alex Gaynor
ce1eb320e5
Remove a case that is no longer reachable in encodings.py.
...
This case was originally designed to handle Exception's which didn't gracefully support coercing themselves to unicode. However, because it lives in the `else` case of `if hasattr(s, '__unicode__'):` we can be sure it's no longer reachable in djanog anymore, because since Python 2.5 exception has subclassed object, which means Exception objects always have an __unicode__ method.
2012-10-24 15:53:00 -07:00
Claude Paroz
22471a41ba
Merge pull request #457 from JanBednarik/ticket_19142
...
Fixed #19142 -- Language codes can include numbers (RFC 3066)
2012-10-21 10:35:01 -07:00
Alex Gaynor
6b3d2bc981
Merge pull request #444 from mitar/patch-2
...
Allow reversed iteration over SortedDict.
2012-10-20 20:39:49 -07:00
Jan Bednařík
e6b34193c5
Fixed #19142 -- Language codes can include numbers (RFC 3066).
2012-10-21 01:25:35 +02:00
Aymeric Augustin
4b27813198
Fixed #7581 -- Added streaming responses.
...
Thanks mrmachine and everyone else involved on this long-standing ticket.
2012-10-20 20:05:11 +02:00
Mitar
c3fabb282d
Allow reversed iteration over SortedDict.
...
Iterators cannot be reversed easily without this method.
2012-10-15 04:16:46 -07:00
Claude Paroz
afbf913b90
Build context strings out of [u|n]gettext
...
The context strings in [n]pgettext functions should not be marked
themselves for translation.
2012-10-15 10:00:22 +02:00
Anssi Kääriäinen
a8b1861fc4
Revert "Fixed #16211 -- Added comparison and negation ops to F() expressions"
...
This reverts commit 28abf5f0eb
.
Conflicts:
docs/releases/1.5.txt
2012-10-10 01:15:29 +03:00
Anssi Kääriäinen
28abf5f0eb
Fixed #16211 -- Added comparison and negation ops to F() expressions
...
Work done by Walter Doekes and Trac alias knoeb. Reviewed by Simon
Charette.
2012-09-30 17:51:06 +03:00
Claude Paroz
10e505b1b3
Moved filter at handler level
...
Filters at logger level are only processed for messages directly
logged to the specific logger, not for loggers in the parent chain.
As the 'django' logger is almost always processed as an inherited
logger, it makes more sense to filter messages at the 'console'
handler level.
2012-09-29 23:50:34 +02:00
Claude Paroz
f0f327bbfe
Fixed #18993 -- 'django' logger logs to console when DEBUG=True
...
Thanks Preston Holmes for the review.
2012-09-29 22:56:18 +02:00
Claude Paroz
a014ddfef2
Combined Django DEFAULT_LOGGING with user LOGGING config
...
Refs #18993 .
2012-09-29 22:56:18 +02:00
Julien Phalip
b8244c654c
Fixed #18881 -- Made the context option in {% trans %} and {% blocktrans %} accept literals wrapped in single quotes. Thanks to lanyjie for the report.
2012-09-27 20:34:45 -07:00
Claude Paroz
b3ee80a0cf
Fixed parse_http_date docstring and moved related tests
...
Refs #18675 .
2012-09-26 21:10:17 +02:00
Aymeric Augustin
822cfce3df
Fixed #18951 -- Formatting of microseconds.
...
Thanks olofom at gmail com for the report.
2012-09-22 12:02:21 +02:00
Dave Hall
44767f2caf
Use unicode.translate to speed up js escaping.
2012-09-18 21:15:15 +02:00
Florian Apolloner
319e135519
Fixed #18800 -- Support numbers bigger than max float in `numberformat`.
...
Thanks to jbvsmo for the patch and Brad Pitcher for the tests.
2012-09-18 19:43:50 +02:00
Carl Meyer
fcec904e4f
Fix an HTML-parser test that's failed in Python 2.6.8 since 5c79dd58
.
...
The problem description in #18239 asserted that
http://bugs.python.org/issue670664 was fixed in Python 2.6.8, but based on
http://bugs.python.org/issue670664#msg146770 it appears that's not correct; the
fix was only applied in 2.7, 3.2, and Python trunk. Therefore we must use our
patched HTMLParser subclass in all Python 2.6 versions.
2012-09-09 12:13:42 -06:00
Alex Gaynor
b865009d41
Fixed #12397 -- allow safe_join to work with the root file system path, which means you can have your root template or file upload path at this location. You almost certainly don't want to do this, except in *very* limited sandboxed situations.
2012-09-07 16:49:22 -04:00
Alex Gaynor
292322f977
[py3k] Silence many warnings while running the tests.
2012-09-07 13:17:34 -04:00
Claude Paroz
cc9b767fc6
Fixed #18902 -- Made force_bytes properly handle exception input
...
Thanks Aymeric Augustin for the report and the initial patch.
2012-09-04 09:27:28 +02:00
Claude Paroz
ae88e73fa6
Replaced some smart_xxx by force_xxx equivalent
...
smart_str/smart_text should only be used when a potential lazy
string should be preserved in the result of the function call.
2012-08-30 15:46:16 +02:00
Claude Paroz
ebc773ada3
Replaced many smart_bytes by force_bytes
...
In all those occurrences, we didn't care about preserving the
lazy status of the strings, but we really wanted to obtain a
real bytestring.
2012-08-29 11:20:32 +02:00
Aymeric Augustin
20012b961e
[py3] Updated bundled version of six
2012-08-28 23:20:55 +02:00
Aymeric Augustin
03671ad7e3
Reordered imports
...
to avoid an error introduced in 5301a9d7b1
.
2012-08-23 10:24:50 +02:00