1
0
mirror of https://github.com/django/django.git synced 2025-07-04 09:49:12 +00:00

3146 Commits

Author SHA1 Message Date
Malcolm Tredinnick
78b75b9065 unicode: Merged from trunk up to [5333].
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5337 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-25 03:02:12 +00:00
Malcolm Tredinnick
5a396c8b1d unicode: Typo fixing.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5334 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-24 13:08:18 +00:00
Malcolm Tredinnick
b579a3cc64 unicode: Fixed some more Python 2.3 problems (thank-you, test suite!)
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5332 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-24 12:20:23 +00:00
Malcolm Tredinnick
c830b6cfef unicode: Fixed a few Python 2.3 problems caused by 2.3's slightly brain-damaged
unicode string interpolation.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5331 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-24 12:04:44 +00:00
Malcolm Tredinnick
9ce95c6775 unicode: Added a new docoment describing how wonderful our unicode support is
and documenting some of the unicode-specific features.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5330 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-24 09:15:31 +00:00
Malcolm Tredinnick
dceac0a384 unicode: Added a "new in development version" marker to FILE_CHARSET.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5329 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-24 09:13:13 +00:00
Malcolm Tredinnick
a09cb2a9e5 unicode: Added unicode-aware equivalents of urllib.quote() and
urllib.quote_plus() in django.utils.html.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5328 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-24 06:44:54 +00:00
Malcolm Tredinnick
31d5d55090 unicode: Added call to iri_to_uri() on the result of a reverse() call. This
makes using the permalink() decorator more natural.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5327 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-24 06:24:30 +00:00
Malcolm Tredinnick
fbce6f6bdc unicode: Made some small tweaks to the i18n docs. The whole file could do with
a rewrite, though, I suspect.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5324 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-24 02:20:34 +00:00
Malcolm Tredinnick
3989feed0c unicode: Fixed #4367 -- Fixed a problem when trying to display some
legitimately non-unicode, non-UTF-8 data. The workaround is probably a bit
broad, but it shouldn't hurt in any unintended way I can think of.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5323 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-24 01:25:51 +00:00
Malcolm Tredinnick
19d71a21df unicode: Fixed one of the changes in [5320] in a slightly different way. This
should be backwards compatible with trunk, so it's one less things people need
to change.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5322 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-24 01:01:32 +00:00
Malcolm Tredinnick
9c44751c08 unicode: Removed some redundant code.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5321 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-24 00:48:36 +00:00
Malcolm Tredinnick
b25f6e9526 unicode: Fixed a number of problems where lazily translated objects were not
being converted back to unicode strings correctly. Fixed #4359 and #4361.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5320 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-23 03:46:57 +00:00
Malcolm Tredinnick
d72f630fdb unicode: Documented the new iriencode filter and added a test to prove one of
my claims.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5317 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-22 08:50:47 +00:00
Malcolm Tredinnick
0fc057c486 unicode: Fixed two bozo errors in [5315]. Even tested it this time.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5316 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-22 08:28:06 +00:00
Malcolm Tredinnick
1c56e2d6d3 unicode: Encoded exception data safely in traceback output. Thanks, Thomas
Güttler. Refs #4300.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5315 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-22 08:22:54 +00:00
Malcolm Tredinnick
dd52eed2fb unicode: Made lazy translation objects work properly. Fixed #4295, #4320.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5314 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-22 08:06:57 +00:00
Malcolm Tredinnick
c2c585f0f0 unicode: Added a note about some tests that fail for MySQL. Changed the test
data slightly so that it will even fit into a server who's default encoding is
latin1, but still no luck. :-(


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5312 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-22 00:46:08 +00:00
Malcolm Tredinnick
6f23be4ee9 unicode: Merged from trunk up to [5308].
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5310 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-21 23:24:06 +00:00
Malcolm Tredinnick
f1091ec619 unicode: Fixed #4340 -- added a few character set encodings that PostgreSQL 7.x
can return. Pointed out by tim@tryphon.org.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5286 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-19 17:05:02 +00:00
Malcolm Tredinnick
695a21ae7f unicode: Fixed a couple of places where IRI fragments are being used and need
to be converted correctly.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5284 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-19 00:19:17 +00:00
Malcolm Tredinnick
3d74a68a51 unicode: Fixed iri_to_uri() to be not quite as broken (I think it's spec
compliant now). Removed use of iri_to_uri() in the urlencode filter and made a
new iriencode filter, because IRI->URI conversionis are not a superset of URL
quoting converstions.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5283 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-19 00:17:23 +00:00
Malcolm Tredinnick
68a0f4f51b unicode: Added support for sending email that contains unicode data. Refs #3398.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5282 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-18 18:23:34 +00:00
Malcolm Tredinnick
e10da26109 unicode: Started making the necessary documentation changes required for
unicodification.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5280 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-17 20:27:12 +00:00
Malcolm Tredinnick
6042458926 unicode: Merged from trunk up to [5265].
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5279 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-17 18:35:22 +00:00
Malcolm Tredinnick
c0b451fcfa unicode: Added iri_to_uri() utility function and use it in the databrowse app.
Should make getting this stuff right a bit easier.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5278 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-17 18:19:40 +00:00
Malcolm Tredinnick
52b0051523 unicode: Added (optional) explicit template encoding specification. Also ported
contrib.sitemaps over (we want to ensure the output XML is in a valid encoding,
so we force UTF-8 in this case).


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5277 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-17 16:55:38 +00:00
Malcolm Tredinnick
a8404e66fd unicode: Audited most of the remaining contrib/ modules for unicode compliance
(only sitemaps remaining). Fixes here for databrowse, markup and webdesign.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5274 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-17 01:24:58 +00:00
Malcolm Tredinnick
5b4e2637f9 unicode: Fixed urlencode filter to handle IRI portions and map them to URI
portions correctly.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5273 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-17 01:19:03 +00:00
Malcolm Tredinnick
e4cd34cbee unicode: Test changes that I forgot to commit in [5271].
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5272 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-16 23:11:49 +00:00
Malcolm Tredinnick
4a7727e46e unicode: Unicode audit pass through localflavor. Also fixed a few common
stylistic errors.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5271 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-16 23:10:31 +00:00
Malcolm Tredinnick
1ad97d0634 unicode: Fixed #4315 -- Fixed a problem with passing unicode strings as keyword
arguments in a function call (so admin list_filters work again now).


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5270 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-16 22:41:35 +00:00
Malcolm Tredinnick
abba09c6d2 unicode: Fixed #4314 -- Allow non-ASCII characters in password strings.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5269 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-16 22:30:54 +00:00
Malcolm Tredinnick
d5946c5946 unicode: Found a str() call that had snuck through the cracks.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5268 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-16 22:23:36 +00:00
Malcolm Tredinnick
2cebf777e3 unicode: Fixed #4313 -- fixed a problem with unicode strings and datetime
format filters.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5267 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-16 22:22:53 +00:00
Malcolm Tredinnick
095d3ca8eb unicode: Audited humanize app for unicode compliance.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5258 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-16 14:45:58 +00:00
Malcolm Tredinnick
1ca5bc0f0c unicode: Audited comment app. Only a couple of minor changes needed.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5257 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-16 13:24:18 +00:00
Malcolm Tredinnick
0e2043deef unicode: Fixed a couple of potential unicode problems in auth module.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5256 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-16 12:51:18 +00:00
Malcolm Tredinnick
abf514053b unicode: Renamed no_trans() to the more descriptive deactivate_all(). Added a
verbose_name_raw attribute to the model Options class so that we can more
conveniently access the untranslated model name when we need to.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5255 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-16 12:50:27 +00:00
Malcolm Tredinnick
267dcdb1e6 unicode: Audited syndication framework for unicode correctness.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5251 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-15 18:11:15 +00:00
Malcolm Tredinnick
9d001fa7f9 unicode: Made the serializers unicode-aware. Refs #3878, #4227.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5248 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-15 16:14:55 +00:00
Malcolm Tredinnick
0e4c3838ab unicode: Improved the fix for debug query logging from [5208]. Refs #3891.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5247 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-15 16:13:37 +00:00
Malcolm Tredinnick
19ad4a47ba unicode: Added test to verify fix of #3492.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5243 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 21:58:01 +00:00
Malcolm Tredinnick
cd3d40ec91 unicode: Fixed handling of unicode data passed to test client. Refs #3432.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5242 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 21:50:38 +00:00
Malcolm Tredinnick
57ced25606 unicode: Merged from trunk to [5237].
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5241 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 19:42:13 +00:00
Malcolm Tredinnick
36c508d1ed unicode: Audited contrib.contentypes for unicode problems.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5240 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 19:05:16 +00:00
Malcolm Tredinnick
03b86ea12d unicode: Fixed #4292 -- Added support for __unicode__ to lazy() objects.
Thanks, Ivan Sagalaev.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5239 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 19:04:06 +00:00
Malcolm Tredinnick
4c34343e17 unicode: Added in a test that I want to work later (once some i18n problems are
worked out).


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5238 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 18:39:03 +00:00
Malcolm Tredinnick
fbfefbf83d unicode: Changed a few more places in newforms where str() was being used with
potential non-ASCII arguments. Refs #3406 (and added a test for the latter).


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5236 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 16:06:27 +00:00
Malcolm Tredinnick
3916cfbaff unicode: Replaced all implicit uses of _() from builtins with explicitly
importing ugettext and aliasing it to _. Refs #2920.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5230 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 11:56:20 +00:00