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
Malcolm Tredinnick
a4adfd780a
unicode: Replaced remaining uses in Python code of gettext() with ugettext().
...
Similarly for ngettext, gettext_lazy and ngettext_lazy.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5229 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 11:24:37 +00:00
Malcolm Tredinnick
2aa9d45c01
Reintroduced support for parameter dictionaries when using the PostgreSQL
...
psycopg1 backend directly. Refs #3322 . Based on a patch from kurtiss@meetro.com .
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5227 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 10:48:24 +00:00
Malcolm Tredinnick
9de774aad8
unicode: Improved the test slightly for RadioSelect widgets with unicode
...
choices.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5226 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 10:18:29 +00:00
Malcolm Tredinnick
e1593cca3f
unicode: Merged from trunk up to [5222] (want to use the extra tests).
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5224 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 07:16:27 +00:00
Malcolm Tredinnick
6c99a60e0d
unicode: Made various changes to prevent actual and potential Python 2.3
...
compatibility problems. Refs #3582 .
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5223 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 07:04:31 +00:00
Malcolm Tredinnick
28f66bb097
unicode: Merged from trunk up to [5213].
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5214 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-13 06:23:30 +00:00
Malcolm Tredinnick
bc044651aa
unicode: Make sure we don't try to insert unicode data into bytestrings in the
...
debug database cursor. Might not be necessary, but it can't hurt in any case.
Refs #3891 .
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5208 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12 15:40:46 +00:00
Malcolm Tredinnick
50ef85f6e2
unicode: Added another test to make sure we don't screw up bytestrings.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5205 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12 15:31:52 +00:00
Malcolm Tredinnick
994714d8cc
unicode: Added some more unicode conversions in django.db.models.*.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5203 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12 15:07:17 +00:00
Malcolm Tredinnick
1026402499
unicode: Adjusted the admin interface to handle unicode strings. May still need
...
some tweaking, but the bulk of it should be correct. Fixed #4266 .
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5200 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12 10:34:34 +00:00
Malcolm Tredinnick
7c45aad673
unicode: Added some bullet-proofing to the output encoding path. Passing bady
...
encoded data to template rendering shouldn't crash the framework.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5199 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12 06:54:41 +00:00
Malcolm Tredinnick
a8e5db536e
unicode: Removed some duplicated code that had crept in. Some kind of tragic
...
"falling asleep on keyboard" accident whilst vim was open, I assume.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5198 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12 06:32:23 +00:00
Malcolm Tredinnick
5e9aead902
unicode: Added handling for illegaly encoded form input.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5197 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12 05:29:10 +00:00
Malcolm Tredinnick
7225efba50
unicode: Fixed #4249 -- Decode source files correctly in the debug view.
...
Thanks, Thomas Güttler.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5193 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-11 14:49:43 +00:00
Malcolm Tredinnick
56db7a6078
unicode: Fixed a problem when saving Unicode data in the admin interface.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5192 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-11 14:29:25 +00:00
Malcolm Tredinnick
a7a756e27e
unicode: Merged changes from trunk up to [5182].
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5185 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-11 07:28:33 +00:00
Malcolm Tredinnick
ce4722a52a
unicode: First part of the form input changes. Form parameters are now
...
automatically returned as unicode.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5184 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-11 06:03:40 +00:00
Malcolm Tredinnick
dcc8577969
unicode: Merged from trunk up to [5150].
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5151 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-05 09:53:50 +00:00
Malcolm Tredinnick
63d95548a7
unicode: Merged from trunk up to [5121].
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5126 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-28 16:49:21 +00:00
Malcolm Tredinnick
080cebaf69
unicode: Changed StrAndUnicode class to be consistent with everything else as
...
to the encoding of bytestrings.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5101 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-27 08:29:08 +00:00
Malcolm Tredinnick
ee0bc3b6c8
unicode: Fixed #4161 -- Ported oldforms internal string handling across to use
...
unicode. Still some breakage in admin, but that is caused by other problems.
Another contribution from Ivan Sagalaev.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5090 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-26 13:18:54 +00:00
Malcolm Tredinnick
511b2591b7
unicode: Updated make-messages.py to process our variations of the
...
u[n]gettext() functions.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5083 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-26 10:17:01 +00:00
Malcolm Tredinnick
0da72ff885
unicode: Fixed #4152 -- Converted a lot of internal [n]gettext() calls into
...
u[n]gettext() calls. Thanks, Ivan Sagalaev.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5082 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-26 09:58:44 +00:00
Malcolm Tredinnick
dfc553625d
unicode: Merged from trunk up to [5080].
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5081 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-26 09:53:45 +00:00
Malcolm Tredinnick
dfe20bb91a
unicode: Fixed #4109 -- Converted internal models to have a __unicode__ method.
...
In most cases this is just a slight performance improvement (saves on later
conversions), in a few cases it's a good idea because things like
"username" could now be legitimately non-ASCII.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5059 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-22 04:55:42 +00:00
Malcolm Tredinnick
03b46fc8d0
unicode: Added FILE_CHARSET setting and use it to decode files read from disk.
...
Based on a patch from Ivan Sagalaev. Fixed #4021 .
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5058 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-22 04:21:04 +00:00
Malcolm Tredinnick
9470a6c5bb
unicode: Fixed #3996 . Added check for model-specific __unicode__ method to
...
default Model.__str__ method. Thanks, Ivan Sagalaev.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5057 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-22 03:13:00 +00:00
Malcolm Tredinnick
b30e5b5434
Changed default template filters to always return unicode (and to handle unicode input better). Also changed all django.utils.* functions that are used (or likely to be used) by filters to return unicode strings.
...
Most of the filter porting was done by Ivan Sagalaev. Fixed #3977 .
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5056 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-21 14:34:43 +00:00
Malcolm Tredinnick
dadbe3c737
unicode: Added ugettext(), ungettext() and *_lazy() versions of same.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5055 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-21 14:16:21 +00:00
Malcolm Tredinnick
5860a5a4be
unicode: Merged up to [5053].
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5054 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-21 06:18:25 +00:00
Malcolm Tredinnick
349bf5a355
unicode: Merged with trunk up to [4970].
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@4973 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-09 11:09:17 +00:00
Malcolm Tredinnick
e5adc5a427
unicode: Removed stray reference to non-existent settings.DATABASE_CHARSET.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@4972 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-09 11:05:50 +00:00