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

3184 Commits

Author SHA1 Message Date
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
Malcolm Tredinnick
e725280cb1 Missed file from [4928].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4929 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-05 01:57:51 +00:00
Malcolm Tredinnick
367db24b79 Updated version of default English PO file.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4928 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-05 01:57:09 +00:00
Malcolm Tredinnick
084bb7420f Fixed #3901 -- Updated Brailian Portugese translation. Thanks onaiort@gmail.com.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-05 01:55:55 +00:00
Malcolm Tredinnick
5f7b0dfb11 Removed an umlaut, since our i18n support (creating PO files) doesn't work
smoothly with Python unicode strings at the moment.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4926 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-04 15:15:51 +00:00
Malcolm Tredinnick
bc65445e8d Cleaned up [4924]. Sorry; wasn't concentrating enough.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4925 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-04 13:57:14 +00:00
Malcolm Tredinnick
f529a1f12e Fixed #3597 -- Fixed unicode encoding problem in form rendering. Thanks,
Georgi Stanojevski and Ville Säävuori.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4924 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-04 13:52:35 +00:00
Malcolm Tredinnick
56d56e5bac Added a FIXME that I forgot to include earlier.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4923 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-04 13:25:53 +00:00
Malcolm Tredinnick
5f2c513f9c Fixed #3919 -- Added German identity card number validation to German
localflavor. Thanks, Jannis Leidel.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4922 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-04 11:40:08 +00:00
Malcolm Tredinnick
33a3220fa1 Ingore auto-generated MANIFEST file.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4921 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-04 06:54:32 +00:00
Malcolm Tredinnick
7a0441b712 Fixed #3897 -- Added German localflavor. Thanks, Jannis Leidel.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4920 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-04 06:45:29 +00:00
Malcolm Tredinnick
5212911b19 Made django.utils.html.escape() work with unicode strings (and unicode-like
objects). Refs #3897.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4919 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-04 06:43:28 +00:00
Malcolm Tredinnick
1bddac37b6 Moved smart_unicode and StrAndUnicode to django.utils.encoding. They are useful
outside of newforms. This is backwards compatible as far as smart_unicode goes
(since newforms.util still imports it). All imports of smart_unicode and
StrAndUnicode have also been updated.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4918 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-04 06:34:19 +00:00
Adrian Holovaty
f791a598a8 Negligible formatting changes to some recent commits
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4917 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-03 22:33:28 +00:00
Adrian Holovaty
87471549b3 Fixed #3913 -- Fixed legacy/confusing 'mysite.settings.main' in docs/faq.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4915 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-03 21:57:15 +00:00
Jacob Kaplan-Moss
bb53a0e264 Dropped the presumptive next release's number to 0.97 just so that nobody gets silly about the magic one-oh.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4914 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-03 16:05:03 +00:00
Malcolm Tredinnick
a3f32ead5d Bumped version number to 1.0-pre, so that we can tell it apart from the 0.96
releases.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4913 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-03 12:30:13 +00:00
Malcolm Tredinnick
b9d077c10d Fixed #3338, #3536, #3796 -- Fixed a bunch of setup and build problems in a
portable fashion. That took a *lot* longer to debug than I thought it would, so
let's try not to break it.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4912 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-03 12:28:19 +00:00
Malcolm Tredinnick
abe6c5d6ae Fixed #3901 -- Updated Brazilian Portugese translation. Thanks Daniel Alves
Barbosa de Oliveira Vaz.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4911 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-03 04:42:40 +00:00