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
Malcolm Tredinnick
b493b7e3cf
unicode: Converted the template output and database I/O interfaces to
...
understand unicode strings. All tests pass (except for one commented out with
"XFAIL"), but untested with database servers using non-UTF8, non-ASCII on the
server.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@4971 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-09 10:33:57 +00:00
Malcolm Tredinnick
232b7ac519
Initialized merge tracking via "svnmerge" with revisions "1-4951" from
...
http://code.djangoproject.com/svn/django/trunk
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@4969 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-09 04:24:03 +00:00
Adrian Holovaty
c2f7fccb62
Created unicode branch, for making Django use Unicode internally throughout.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@4952 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-07 05:15:27 +00:00
Adrian Holovaty
c7f6cd0243
Added blank lines around Meta and Admin classes in django.contrib.auth.models
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4945 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-07 04:21:31 +00:00
Adrian Holovaty
e3308e1976
Fixed inconsistent indentation in localflavor/de/forms.py from [4922]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4939 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-06 04:24:06 +00:00
Russell Keith-Magee
07f599ca5c
Fixed the ADO backend to match the required interface and normalized naming of parameters.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4938 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-06 02:27:18 +00:00
Russell Keith-Magee
dabd96646c
Fixed #3790 -- Fixed a problem with sequence resetting during fixture loads when using Postgres. Thanks to Jon Ballard and scott@staplefish.com for the report, and to Zach Thompson for suggesting a solution.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4937 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-06 02:25:58 +00:00
Malcolm Tredinnick
e339a41222
Added a check of the format specifiers in Python strings. This will identify a
...
lot of common translation errors.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4934 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-05 15:34:32 +00:00
Malcolm Tredinnick
73c40c5999
Backed out a portion of [4919] until I can make it worth smoothly with
...
oldforms. Refs #3924 .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4933 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-05 14:52:33 +00:00
Malcolm Tredinnick
e57d1bddda
Small fix to [4931].
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4932 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-05 03:25:30 +00:00
Malcolm Tredinnick
8424ea39f8
Fixed #3918 -- Handle technical message IDs correctly when settings.USE_I18N is
...
False.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4931 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-05 03:22:49 +00:00
Malcolm Tredinnick
b30c505d0d
Fixed #3931 -- Corrected a typo noticed by Jorge Gajon.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4930 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-05 03:13:17 +00:00