1. django
  2. django
  3. Branches

Branches

attic/unicode

View source
attic/unicode
  • Contributors
    1. Loading...
Author Commit Message Date Builds
250+ commits behind default.
uber...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
Move the unicode branch into the attic.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Added unicode-aware slugify filter (in Python) and better non-ASCII handling for the Javascript slug creator in admin. Can never be perfect here, but this is more tolerant in many cases. Fixed #4365. Thanks, Bill de hÓra, Baptiste, orestis@orestis.gr, Ahmet and Jonas for contributions to this.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed a docstring that was no longer completely accurate.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Added a comment to the example in [5602].
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Changed one Model.__str__ test to verify that old-style code still works with pure ASCII data.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Merged from trunk up to [5600].
adr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Made some documentation edits and inconsequential typo fixes throughout code
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Added a test to ensure that we title-case non-ASCII strings properly. Refs #4749.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Added support for non-ASCII labels for URL patterns.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Added Unicode support for the Oracle backend. All tests pass.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed a method resolution order (mro) problem introduced in [5547] that broke non-ASCII email headers.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Merged changes from trunk up to [5579].
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
Worked around the situation when getdefaultlocale() might return (None, None), which apparently can happen.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: A different version of [5532], based on feedback from Windows users in far away countries.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed #4662 -- Fixed a remaining ASCII assumption in truncatewords_html(). Thanks, Ivan Sagalaev.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed an encoding problem that was showing up on non-English versions of Windows (where timezone strings are different to POSIX systems).
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Merged from trunk up to [5530]. Oracle backend has not been ported to support unicode yet.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Implemented comparisons between *_lazy() objects. comparing ugettext_lazy() instances to each other now works, for example.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Render templates as unicode objects and only convert them to bytestrings as part of HttpRespnose and other output paths.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed #4583 -- Fixed a problem with displaying verbose names in databrowse.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed #454 -- Fixed admin bug for custom primary keys. Thanks, me@hiddedpp.com.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Merged changes from trunk up to [5460].
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed the urlencode filter to work with non-ASCII strings. Fixed a similar error in HttpRedirect processing.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed #4493 -- Fixed a problem where a __unicode__ method was not returning a unicode object.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed #4495 -- Fixed a used of str() in the "firstof" template tag. Patch from Ivan Sagalaev.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed #4479 -- Changed an errant gettext() call to ugettext().
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Merged from trunk up to [5443].
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed #4472 -- Must return unicode objects from __unicode__ methods. Lazy translation proxies are not an acceptable substitute.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Implemented string interpolation for lazy objects.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Merged from trunk up to [5418].
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Merged from trunk up to [5398].
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed #4442 -- Fixed a problem with string_concat() when USE_I18N=False.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed #4430 -- Handle bytestrings and IRIs more robustly in feed production. Thanks to Almad and Michal@plovarna.cz for some good debugging here.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Changed all tests and documentation to use __unicode__ instead of __str__ in places where it's appropriate to do so.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Merged from trunk up to [5380].
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Ensure that all the strings we put into a mod_python response are strings.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed a bug in lazy_inter().
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
Fixed #4403 -- Stopped pushing form error messages (which are unicode strings) through a __str__ method.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed a docstring from [5373].
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed decoding problems in POST when a form upload was part of a form.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed a problem when models had non-ASCII bytestrings for their verbose_name.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed __proxy__.__str__() handling. So gettext_lazy() will work more naturally now.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed a dubious test construct.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Added a more convenient way to set/change the encoding on a request instance.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Changed the markup filters to use force_unicode() instead of smart_unicode(), merely for consistency with the recommendations in the documentation.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Filled in some missing pieces of documentation.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Added a check to ensure that iri_to_uri() remains idempotent.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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).
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Merged from trunk up to [5333].
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Typo fixing.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed some more Python 2.3 problems (thank-you, test suite!)
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed a few Python 2.3 problems caused by 2.3's slightly brain-damaged unicode string interpolation.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Added a new docoment describing how wonderful our unicode support is and documenting some of the unicode-specific features.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Added a "new in development version" marker to FILE_CHARSET.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Added unicode-aware equivalents of urllib.quote() and urllib.quote_plus() in django.utils.html.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Added call to iri_to_uri() on the result of a reverse() call. This makes using the permalink() decorator more natural.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Made some small tweaks to the i18n docs. The whole file could do with a rewrite, though, I suspect.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed #4367 -- Fixed a problem when trying to display some legitimately non-unicode, non-UTF-8 data. The workaround is probably a bit broad, but it shouldn't hurt in any unintended way I can think of.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed one of the changes in [5320] in a slightly different way. This should be backwards compatible with trunk, so it's one less things people need to change.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Removed some redundant code.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed a number of problems where lazily translated objects were not being converted back to unicode strings correctly. Fixed #4359 and #4361.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Documented the new iriencode filter and added a test to prove one of my claims.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed two bozo errors in [5315]. Even tested it this time.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Encoded exception data safely in traceback output. Thanks, Thomas Güttler. Refs #4300.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Made lazy translation objects work properly. Fixed #4295, #4320.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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. :-(
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Merged from trunk up to [5308].
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed #4340 -- added a few character set encodings that PostgreSQL 7.x can return. Pointed out by tim@tryphon.org.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed a couple of places where IRI fragments are being used and need to be converted correctly.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Added support for sending email that contains unicode data. Refs #3398.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Started making the necessary documentation changes required for unicodification.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Merged from trunk up to [5265].
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Added iri_to_uri() utility function and use it in the databrowse app. Should make getting this stuff right a bit easier.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Added (optional) explicit template encoding specification. Also ported contrib.sitemaps over (we want to ensure the output XML is in a valid encoding, so we force UTF-8 in this case).
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Audited most of the remaining contrib/ modules for unicode compliance (only sitemaps remaining). Fixes here for databrowse, markup and webdesign.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed urlencode filter to handle IRI portions and map them to URI portions correctly.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Test changes that I forgot to commit in [5271].
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Unicode audit pass through localflavor. Also fixed a few common stylistic errors.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed #4315 -- Fixed a problem with passing unicode strings as keyword arguments in a function call (so admin list_filters work again now).
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed #4314 -- Allow non-ASCII characters in password strings.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Found a str() call that had snuck through the cracks.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed #4313 -- fixed a problem with unicode strings and datetime format filters.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Audited humanize app for unicode compliance.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Audited comment app. Only a couple of minor changes needed.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed a couple of potential unicode problems in auth module.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Audited syndication framework for unicode correctness.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Made the serializers unicode-aware. Refs #3878, #4227.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Improved the fix for debug query logging from [5208]. Refs #3891.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Added test to verify fix of #3492.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed handling of unicode data passed to test client. Refs #3432.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Merged from trunk to [5237].
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Audited contrib.contentypes for unicode problems.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed #4292 -- Added support for __unicode__ to lazy() objects. Thanks, Ivan Sagalaev.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Added in a test that I want to work later (once some i18n problems are worked out).
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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).
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Replaced all implicit uses of _() from builtins with explicitly importing ugettext and aliasing it to _. Refs #2920.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Replaced remaining uses in Python code of gettext() with ugettext(). Similarly for ngettext, gettext_lazy and ngettext_lazy.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
Reintroduced support for parameter dictionaries when using the PostgreSQL psycopg1 backend directly. Refs #3322. Based on a patch from kurtiss@meetro.com.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Improved the test slightly for RadioSelect widgets with unicode choices.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Merged from trunk up to [5222] (want to use the extra tests).
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Made various changes to prevent actual and potential Python 2.3 compatibility problems. Refs #3582.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Merged from trunk up to [5213].
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Added another test to make sure we don't screw up bytestrings.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Added some more unicode conversions in django.db.models.*.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Adjusted the admin interface to handle unicode strings. May still need some tweaking, but the bulk of it should be correct. Fixed #4266.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Added some bullet-proofing to the output encoding path. Passing bady encoded data to template rendering shouldn't crash the framework.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Removed some duplicated code that had crept in. Some kind of tragic "falling asleep on keyboard" accident whilst vim was open, I assume.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Added handling for illegaly encoded form input.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed #4249 -- Decode source files correctly in the debug view. Thanks, Thomas Güttler.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed a problem when saving Unicode data in the admin interface.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Merged changes from trunk up to [5182].
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: First part of the form input changes. Form parameters are now automatically returned as unicode.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Merged from trunk up to [5150].
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Merged from trunk up to [5121].
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Changed StrAndUnicode class to be consistent with everything else as to the encoding of bytestrings.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Updated make-messages.py to process our variations of the u[n]gettext() functions.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed #4152 -- Converted a lot of internal [n]gettext() calls into u[n]gettext() calls. Thanks, Ivan Sagalaev.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Merged from trunk up to [5080].
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Added FILE_CHARSET setting and use it to decode files read from disk. Based on a patch from Ivan Sagalaev. Fixed #4021.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Fixed #3996. Added check for model-specific __unicode__ method to default Model.__str__ method. Thanks, Ivan Sagalaev.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Added ugettext(), ungettext() and *_lazy() versions of same.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Merged up to [5053].
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Merged with trunk up to [4970].
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
unicode: Removed stray reference to non-existent settings.DATABASE_CHARSET.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
Initialized merge tracking via "svnmerge" with revisions "1-4951" from http://code.djangoproject.com/svn/django/trunk
adr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
Created unicode branch, for making Django use Unicode internally throughout.