1
0
mirror of https://github.com/django/django.git synced 2025-10-28 16:16:12 +00:00
Commit Graph

195 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Malcolm Tredinnick
a5938f350c Fixed #3890 -- Added USSocialSecurityNumberField. Thanks James Bennet.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4910 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-03 03:56:17 +00:00
Malcolm Tredinnick
44ba9aa674 Fixed #3882 -- Changed error messages in Brazilian localflavor to be in
English. Thanks, Wiliam Alves de Souza.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4908 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-03 03:13:21 +00:00
Malcolm Tredinnick
4a3db287f1 Fixed #3600 -- Made smart_unicode respect deferred evaluation in the case
of strings translated with gettext_lazy and friends.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4904 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-02 10:53:05 +00:00
Malcolm Tredinnick
d882656ea3 Added the ability to name URL patterns. Helps with disambiguity reverse matches.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4901 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-01 07:25:20 +00:00
Malcolm Tredinnick
c60587b5a7 Fixed #3810 -- In newforms, copy attribute dictionaries before modifying them
in place.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4894 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-01 05:26:26 +00:00
Adrian Holovaty
018ece8dc8 Negligible formatting change to humanize tests.py (from [4880])
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4892 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-01 05:23:08 +00:00
Malcolm Tredinnick
b11454dc3d Moved localflavor form tests into their own file.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4887 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-01 04:40:36 +00:00
Russell Keith-Magee
9191fa1f64 Fixed #3532 -- Made spaceless template tag remove all spaces, rather than preserving a single space. Thanks for the suggestion, ampaze@gmx.net.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4885 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-01 01:09:21 +00:00
Malcolm Tredinnick
04c155fd06 Fixed #3017 -- Added tests for humanize filter.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4880 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-31 11:45:24 +00:00
Malcolm Tredinnick
5787603c8b Fixed #3866 -- Added tests for localflavor/it. Thanks flavio.curella@gmail.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4876 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-31 09:18:20 +00:00
Malcolm Tredinnick
79312f7a4e Fixed #3882 -- Added Brazilian localflavor. Thanks, Wiliam Alves de Souza.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4874 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-31 09:05:54 +00:00