.. ========================== Django 1.1.2 release notes ========================== =========================== Django 1.1.2 リリースノート =========================== :revision-up-to: 17812 (1.4) .. Welcome to Django 1.1.2! Django 1.1.2 にようこそ! .. This is the second "bugfix" release in the Django 1.1 series, improving the stability and performance of the Django 1.1 codebase. これは Django 1.1 シリーズ 2 回目の「バグ修正」リリースで、安定性とパフォーマン スを向上します。 .. Django 1.1.2 maintains backwards compatibility with Django 1.1.0, but contain a number of fixes and other improvements. Django 1.1.2 is a recommended upgrade for any development or deployment currently using or targeting Django 1.1. Django 1.1.2 は Django 1.1.0 との後方互換性を維持していますが、いくつかの修正と 改善を含んでいます。Django 1.1 を使用中、あるいは Django 1.1 をターゲットに開発・ デプロイしている場合、Django 1.1.2 へのアップグレードを推奨します。 .. For full details on the new features, backwards incompatibilities, and deprecated features in the 1.1 branch, see the :doc:`/releases/1.1`. 1.1 ブランチでの新機能、後方互換性が維持されない点、そして非推奨になる機能の 詳細については :doc:`/releases/1.1` を参照してください。 .. Backwards-incompatible changes in 1.1.2 ======================================= 1.1.2 における後方互換性の無い変更点 ==================================== .. Test runner exit status code ---------------------------- テストランナの終了ステータスコード ---------------------------------- .. The exit status code of the test runners (``tests/runtests.py`` and ``python manage.py test``) no longer represents the number of failed tests, since a failure of 256 or more tests resulted in a wrong exit status code. The exit status code for the test runner is now 0 for success (no failing tests) and 1 for any number of test failures. If needed, the number of test failures can be found at the end of the test runner's output. テストランナ (``tests/runtests.py`` と ``python manage.py test``) の終了ステータ スコードは、失敗したテストの数を表すものではなくなりました。256 回以上テストに 失敗すると不正なステータスコードになってしまうからです。今後、テストランナの 終了ステータスコードは、0 が成功 (失敗したテストが無い) 、1 が (任意の数の) テスト失敗を表します。もし失敗したテストの数が必要でしたら、テストランナの出力の 最後で確認できます。 .. Cookie encoding --------------- クッキーのエンコーディング -------------------------- .. To fix bugs with cookies in Internet Explorer, Safari, and possibly other browsers, our encoding of cookie values was changed so that the characters comma and semi-colon are treated as non-safe characters, and are therefore encoded as ``\054`` and ``\073`` respectively. This could produce backwards incompatibilities, especially if you are storing comma or semi-colon in cookies and have javascript code that parses and manipulates cookie values client-side. Internet Explorer、 Safari の (もしかすると他のブラウザにもあるかもしれませんが) クッキーのバグを修正するため、コンマとセミコロンが安全でない文字として扱われ、そ れぞれ ``\054`` および ``\073`` とエンコードされるようにクッキー値のエンコーディ ング方法を変更しました。特にコンマやセミコロンをクッキーに入れており、クライアン トサイトでクッキー値を解析・操作するような javascript コードがある場合、この変更 は後方互換性を破壊するかもしれません。 .. One new feature =============== 新しい一つの機能 ================ .. Ordinarily, a point release would not include new features, but in the case of Django 1.1.2, we have made an exception to this rule. Django 1.2 (the next major release of Django) will contain a feature that will improve protection against Cross-Site Request Forgery (CSRF) attacks. This feature requires the use of a new :ttag:`csrf_token` template tag in all forms that Django renders. 通常、ポイントリリース (訳注: マイクロリリース) は新機能を含みませんが、私達は Django 1.1.2 をこのルールの例外としました。Django 1.2 (次の Django のメジャー リリース) はクロスサイトリクエストフォージェリ (CSRF) 攻撃に対するより良い防御を 含みます。この機能では、Django がレンダリングするすべてのフォームにて新しい :ttag:`csrf_token` テンプレートタグを使う必要があります。 .. To make it easier to support both 1.1.X and 1.2.X versions of Django with the same templates, we have decided to introduce the :ttag:`csrf_token` template tag to the 1.1.X branch. In the 1.1.X branch, :ttag:`csrf_token` does nothing - it has no effect on templates or form processing. However, it means that the same template will work with Django 1.2. 1.1.X と 1.2.X の両バージョンの Django が同じテンプレートを簡単にサポートできる ようにするため、私達は新しい :ttag:`csrf_token` テンプレートタグを 1.1.X ブランチに導入することを決めました。1.1.X ブランチでは、 :ttag:`csrf_token` は 何もしません - フォーム処理にもテンプレートにも一切影響を与えません。しかし、 これはつまり Django 1.2 で同じテンプレートが動作することを意味しています。