1
0
mirror of https://github.com/django/django.git synced 2025-07-04 01:39:20 +00:00

3191 Commits

Author SHA1 Message Date
Malcolm Tredinnick
9bf4bacf13 unicode: Added Unicode support for the Oracle backend. All tests pass.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5584 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-02 07:43:36 +00:00
Malcolm Tredinnick
5eb53a6397 unicode: Fixed a method resolution order (mro) problem introduced in [5547]
that broke non-ASCII email headers.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5581 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-01 06:27:07 +00:00
Malcolm Tredinnick
a61d4ebd5f unicode: Merged changes from trunk up to [5579].
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5580 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-01 05:55:01 +00:00
Malcolm Tredinnick
b89d409bf7 Worked around the situation when getdefaultlocale() might return (None, None),
which apparently can happen.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5546 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-26 13:55:28 +00:00
Malcolm Tredinnick
dbb785c0b4 Fixed #4664 -- Forced the client character set encoding to UTF-8 for PostgreSQL
(via the psycopg backend). The previous version was causing problems on some
setups, particularly PostgreSQL 7.x. Current code should work with 7.x and 8.x,
no matter what the default client encoding is.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5535 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-25 14:40:08 +00:00
Malcolm Tredinnick
03ec6423c4 unicode: A different version of [5532], based on feedback from Windows users
in far away countries.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5534 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-25 13:46:01 +00:00
Malcolm Tredinnick
daaa3a1dde unicode: Fixed #4662 -- Fixed a remaining ASCII assumption in
truncatewords_html(). Thanks, Ivan Sagalaev.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5533 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-25 13:11:10 +00:00
Malcolm Tredinnick
9c5994743c unicode: Fixed an encoding problem that was showing up on non-English versions
of Windows (where timezone strings are different to POSIX systems).


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5532 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-25 12:56:52 +00:00
Malcolm Tredinnick
0ced8b0bb2 unicode: Merged from trunk up to [5530]. Oracle backend has not been ported to
support unicode yet.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5531 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-25 12:47:19 +00:00
Malcolm Tredinnick
f4387422f0 unicode: Implemented comparisons between *_lazy() objects. comparing
ugettext_lazy() instances to each other now works, for example.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5489 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-18 02:23:24 +00:00
Malcolm Tredinnick
2126d41aba unicode: Render templates as unicode objects and only convert them to
bytestrings as part of HttpRespnose and other output paths.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5487 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-17 10:25:48 +00:00
Malcolm Tredinnick
1bfcfe615c unicode: Fixed #4583 -- Fixed a problem with displaying verbose names in
databrowse.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5481 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-17 01:23:49 +00:00
Malcolm Tredinnick
d2080dd694 unicode: Fixed #454 -- Fixed admin bug for custom primary keys. Thanks,
me@hiddedpp.com.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5480 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-17 00:53:25 +00:00
Malcolm Tredinnick
d3980231ff unicode: Changed the way re-encoding of form field submission works so that
file uploads are no longer completely broken. Added tests for this as well.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5464 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-11 20:02:08 +00:00
Malcolm Tredinnick
748ea65a61 unicode: Merged changes from trunk up to [5460].
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5462 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-11 14:51:26 +00:00
Malcolm Tredinnick
0b4122d138 unicode: Fixed the urlencode filter to work with non-ASCII strings. Fixed a
similar error in HttpRedirect processing.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5461 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-11 14:30:53 +00:00
Malcolm Tredinnick
75d29fa448 unicode: Fixed #4493 -- Fixed a problem where a __unicode__ method was not
returning a unicode object.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5447 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-09 14:44:27 +00:00
Malcolm Tredinnick
322c3e1454 unicode: Fixed #4495 -- Fixed a used of str() in the "firstof" template tag.
Patch from Ivan Sagalaev.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5446 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-09 14:34:14 +00:00
Malcolm Tredinnick
b43ecd823c unicode: Fixed #4479 -- Changed an errant gettext() call to ugettext().
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5445 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-09 14:30:24 +00:00
Malcolm Tredinnick
b792044d34 unicode: Merged from trunk up to [5443].
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5444 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-09 14:08:14 +00:00
Malcolm Tredinnick
8d30cdc267 unicode: Fixed #4472 -- Must return unicode objects from __unicode__ methods.
Lazy translation proxies are not an acceptable substitute.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5421 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-04 07:48:51 +00:00
Malcolm Tredinnick
fa689ae9c6 unicode: Implemented string interpolation for lazy objects.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5420 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-03 05:35:06 +00:00
Malcolm Tredinnick
bb97eea9ec unicode: Merged from trunk up to [5418].
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5419 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-03 04:45:23 +00:00
Malcolm Tredinnick
554f4e7aa8 unicode: Reverted [5388] and fixed the problem in a different way. Checked
every occurrence of smart_unicode() and force_unicode() that was not previously
a str() call, so hopefully the problems will not reoccur. Fixed #4447. Refs #4435, #4430.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5400 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-01 07:30:40 +00:00
Malcolm Tredinnick
7a30b4e03a unicode: Merged from trunk up to [5398].
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5399 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-01 06:19:01 +00:00
Malcolm Tredinnick
797c1d2a85 unicode: Fixed #4442 -- Fixed a problem with string_concat() when
USE_I18N=False.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5390 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-31 09:51:39 +00:00
Malcolm Tredinnick
8b3781cc68 unicode: Fixed #4430 -- Handle bytestrings and IRIs more robustly in feed
production. Thanks to Almad and Michal@plovarna.cz for some good debugging here.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5389 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-31 09:04:55 +00:00
Malcolm Tredinnick
790d9ecf67 unicode: Changed handling of None in smart_unicode/force_unicode. There is no
case when converting it to a unicode string seems useful, so keep it as None.
Fixed #4435.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5388 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-31 09:03:29 +00:00
Malcolm Tredinnick
8d1ce1fd33 unicode: Changed all tests and documentation to use __unicode__ instead of
__str__ in places where it's appropriate to do so.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5386 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-31 04:25:40 +00:00
Malcolm Tredinnick
ddae2ecfe4 unicode: Merged from trunk up to [5380].
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5381 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-29 13:09:48 +00:00
Malcolm Tredinnick
fa1a0532d3 unicode: Changed header construction for WSGI servers so that we only send
string types (not unicode that is coercable to ASII). Fixes a PEP 333 violation.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5378 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-29 10:20:10 +00:00
Malcolm Tredinnick
d879bce166 unicode: Ensure that all the strings we put into a mod_python response are
strings.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5377 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-28 13:49:15 +00:00
Malcolm Tredinnick
443d5b43ef unicode: Fixed a bug in lazy_inter().
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5376 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-28 13:08:19 +00:00
Malcolm Tredinnick
4d31b5297b Fixed #4403 -- Stopped pushing form error messages (which are unicode strings)
through a __str__ method.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5375 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-28 13:02:16 +00:00
Malcolm Tredinnick
7bb9a8e3ae unicode: Fixed a docstring from [5373].
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5374 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-28 11:56:09 +00:00
Malcolm Tredinnick
c6694dcdee unicode: Fixed decoding problems in POST when a form upload was part of a form.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5373 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-28 11:54:05 +00:00
Malcolm Tredinnick
1e8d1c808b unicode: Fixed a problem when models had non-ASCII bytestrings for their
verbose_name.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5372 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-28 11:04:13 +00:00
Malcolm Tredinnick
087bf45d93 unicode: Changed the place where we compute verbose_name_raw. It's done
on-demand now, rather than in contribute_to_class(), which was causing problems.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5345 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-26 06:55:09 +00:00
Malcolm Tredinnick
e4cb94415e unicode: Fixed __proxy__.__str__() handling. So gettext_lazy() will work more
naturally now.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5344 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-26 06:39:10 +00:00
Malcolm Tredinnick
d5280e72d3 unicode: Fixed a dubious test construct.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5343 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-25 10:36:14 +00:00
Malcolm Tredinnick
7ba850af3b unicode: Added a more convenient way to set/change the encoding on a request
instance.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5342 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-25 09:48:02 +00:00
Malcolm Tredinnick
29d2094b29 unicode: Changed the markup filters to use force_unicode() instead of
smart_unicode(), merely for consistency with the recommendations in the
documentation.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5341 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-25 09:30:43 +00:00
Malcolm Tredinnick
c98f0b14c4 unicode: Filled in some missing pieces of documentation.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5340 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-25 09:16:34 +00:00
Malcolm Tredinnick
545173ed4e unicode: Added a check to ensure that iri_to_uri() remains idempotent.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5339 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-25 07:31:03 +00:00
Malcolm Tredinnick
7b51097847 unicode: Added a unicode-aware version of urlencode. Since we now have a
collection of URL encoding functions, moved them into django.utils.http
(out of django.utils.html).


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5338 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-25 07:25:34 +00:00
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