Author: PaulM Date: 2010-06-23 00:23:15 -0500 (Wed, 23 Jun 2010) New Revision: 13391
Added: django/branches/soc2010/test-refactor/docs/releases/1.3.txt Modified: django/branches/soc2010/test-refactor/ django/branches/soc2010/test-refactor/django/__init__.py django/branches/soc2010/test-refactor/django/contrib/markup/tests.py django/branches/soc2010/test-refactor/django/core/management/commands/testserver.py django/branches/soc2010/test-refactor/docs/ref/databases.txt django/branches/soc2010/test-refactor/docs/ref/django-admin.txt django/branches/soc2010/test-refactor/docs/ref/models/instances.txt django/branches/soc2010/test-refactor/docs/ref/request-response.txt django/branches/soc2010/test-refactor/docs/releases/1.2.txt django/branches/soc2010/test-refactor/docs/releases/index.txt Log: [soc2010/test-refactor] Merged changes from trunk up to 13390 Property changes on: django/branches/soc2010/test-refactor ___________________________________________________________________ Name: svnmerge-integrated - /django/branches/newforms-admin:1-4314 /django/trunk:1-5600 /django/trunk:1-13306 + /django/branches/newforms-admin:1-4314 /django/trunk:1-13390 Modified: django/branches/soc2010/test-refactor/django/__init__.py =================================================================== --- django/branches/soc2010/test-refactor/django/__init__.py 2010-06-23 05:07:02 UTC (rev 13390) +++ django/branches/soc2010/test-refactor/django/__init__.py 2010-06-23 05:23:15 UTC (rev 13391) @@ -1,4 +1,4 @@ -VERSION = (1, 2, 1, 'final', 0) +VERSION = (1, 3, 0, 'alpha', 0) def get_version(): version = '%s.%s' % (VERSION[0], VERSION[1]) Modified: django/branches/soc2010/test-refactor/django/contrib/markup/tests.py =================================================================== --- django/branches/soc2010/test-refactor/django/contrib/markup/tests.py 2010-06-23 05:07:02 UTC (rev 13390) +++ django/branches/soc2010/test-refactor/django/contrib/markup/tests.py 2010-06-23 05:23:15 UTC (rev 13391) @@ -22,7 +22,7 @@ t = Template("{{ textile_content|textile }}") rendered = t.render(Context(locals())).strip() if textile: - self.assertEqual(rendered, """<p>Paragraph 1</p> + self.assertEqual(rendered.replace('\t', ''), """<p>Paragraph 1</p> <p>Paragraph 2 with “quotes” and <code>code</code></p>""") else: Modified: django/branches/soc2010/test-refactor/django/core/management/commands/testserver.py =================================================================== --- django/branches/soc2010/test-refactor/django/core/management/commands/testserver.py 2010-06-23 05:07:02 UTC (rev 13390) +++ django/branches/soc2010/test-refactor/django/core/management/commands/testserver.py 2010-06-23 05:23:15 UTC (rev 13391) @@ -4,6 +4,8 @@ class Command(BaseCommand): option_list = BaseCommand.option_list + ( + make_option('--noinput', action='store_false', dest='interactive', default=True, + help='Tells Django to NOT prompt the user for input of any kind.'), make_option('--addrport', action='store', dest='addrport', type='string', default='', help='port number or ipaddr:port to run the server on'), @@ -18,10 +20,11 @@ from django.db import connection verbosity = int(options.get('verbosity', 1)) + interactive = options.get('interactive', True) addrport = options.get('addrport') # Create a test database. - db_name = connection.creation.create_test_db(verbosity=verbosity) + db_name = connection.creation.create_test_db(verbosity=verbosity, autoclobber=not interactive) # Import the fixture data into the test database. call_command('loaddata', *fixture_labels, **{'verbosity': verbosity}) Modified: django/branches/soc2010/test-refactor/docs/ref/databases.txt =================================================================== --- django/branches/soc2010/test-refactor/docs/ref/databases.txt 2010-06-23 05:07:02 UTC (rev 13390) +++ django/branches/soc2010/test-refactor/docs/ref/databases.txt 2010-06-23 05:23:15 UTC (rev 13391) @@ -18,6 +18,22 @@ PostgreSQL notes ================ +.. versionchanged:: 1.3 + +Django supports PostgreSQL 8.0 and higher. If you want to use +:ref:`database-level autocommit <postgresql-autocommit-mode>`, a +minimum version of PostgreSQL 8.2 is required. + +.. admonition:: Improvements in recent PostgreSQL versions + + PostgreSQL 8.0 and 8.1 `will soon reach end-of-life`_; there have + also been a number of significant performance improvements added + in recent PostgreSQL versions. Although PostgreSQL 8.0 is the minimum + supported version, you would be well advised to use a more recent + version if at all possible. + +.. _will soon reach end-of-life: http://wiki.postgresql.org/wiki/PostgreSQL_Release_Support_Policy + PostgreSQL 8.2 to 8.2.4 ----------------------- @@ -39,6 +55,8 @@ request/response handling. The PostgreSQL backends normally operate the same as any other Django backend in this respect. +.. _postgresql-autocommit-mode: + Autocommit mode ~~~~~~~~~~~~~~~ @@ -84,6 +102,7 @@ Indexes for ``varchar`` and ``text`` columns ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + .. versionadded:: 1.1.2 When specifying ``db_index=True`` on your model fields, Django typically Modified: django/branches/soc2010/test-refactor/docs/ref/django-admin.txt =================================================================== --- django/branches/soc2010/test-refactor/docs/ref/django-admin.txt 2010-06-23 05:07:02 UTC (rev 13390) +++ django/branches/soc2010/test-refactor/docs/ref/django-admin.txt 2010-06-23 05:23:15 UTC (rev 13391) @@ -804,8 +804,6 @@ documentation for ``loaddata`` for details on the specification of fixture data files. ---noinput -~~~~~~~~~ The :djadminopt:`--noinput` option may be provided to suppress all user prompts. @@ -889,6 +887,11 @@ django-admin.py testserver --addrport 1.2.3.4:7000 test +.. versionadded:: 1.3 + +The :djadminopt:`--noinput` option may be provided to suppress all user +prompts. + validate -------- Modified: django/branches/soc2010/test-refactor/docs/ref/models/instances.txt =================================================================== --- django/branches/soc2010/test-refactor/docs/ref/models/instances.txt 2010-06-23 05:07:02 UTC (rev 13390) +++ django/branches/soc2010/test-refactor/docs/ref/models/instances.txt 2010-06-23 05:23:15 UTC (rev 13391) @@ -109,7 +109,7 @@ from django.core.validators import ValidationError, NON_FIELD_ERRORS try: - article.full_clean(): + article.full_clean() except ValidationError, e: non_field_errors = e.message_dict[NON_FIELD_ERRORS] Modified: django/branches/soc2010/test-refactor/docs/ref/request-response.txt =================================================================== --- django/branches/soc2010/test-refactor/docs/ref/request-response.txt 2010-06-23 05:07:02 UTC (rev 13390) +++ django/branches/soc2010/test-refactor/docs/ref/request-response.txt 2010-06-23 05:23:15 UTC (rev 13391) @@ -286,7 +286,7 @@ .. method:: QueryDict.setdefault(key, default) Just like the standard dictionary ``setdefault()`` method, except it uses - ``__setitem__`` internally. + ``__setitem__()`` internally. .. method:: QueryDict.update(other_dict) @@ -305,7 +305,7 @@ .. method:: QueryDict.items() Just like the standard dictionary ``items()`` method, except this uses the - same last-value logic as ``__getitem()__``. For example:: + same last-value logic as ``__getitem__()``. For example:: >>> q = QueryDict('a=1&a=2&a=3') >>> q.items() @@ -315,7 +315,7 @@ Just like the standard dictionary ``iteritems()`` method. Like :meth:`QueryDict.items()` this uses the same last-value logic as - :meth:`QueryDict.__getitem()__`. + :meth:`QueryDict.__getitem__()`. .. method:: QueryDict.iterlists() @@ -325,7 +325,7 @@ .. method:: QueryDict.values() Just like the standard dictionary ``values()`` method, except this uses the - same last-value logic as ``__getitem()__``. For example:: + same last-value logic as ``__getitem__()``. For example:: >>> q = QueryDict('a=1&a=2&a=3') >>> q.values() Modified: django/branches/soc2010/test-refactor/docs/releases/1.2.txt =================================================================== --- django/branches/soc2010/test-refactor/docs/releases/1.2.txt 2010-06-23 05:07:02 UTC (rev 13390) +++ django/branches/soc2010/test-refactor/docs/releases/1.2.txt 2010-06-23 05:23:15 UTC (rev 13391) @@ -21,11 +21,11 @@ Django 1.2 introduces several large, important new features, including: * Support for `multiple database connections`_ in a single Django instance. - + * `Model validation`_ inspired by Django's form validation. - + * Vastly `improved protection against Cross-Site Request Forgery`_ (CSRF). - + * A new `user "messages" framework`_ with support for cookie- and session-based message for both anonymous and authenticated users. @@ -49,9 +49,9 @@ .. seealso:: - `Django Advent`_ covered the release of Django 1.2 with a series of + `Django Advent`_ covered the release of Django 1.2 with a series of articles and tutorials that cover some of the new features in depth. - + .. _django advent: http://djangoadvent.com/ Wherever possible these features have been introduced in a backwards-compatible @@ -66,7 +66,7 @@ * The new CSRF protection framework is not backwards-compatible with the old system. Users of the old system will not be affected until the old system is removed in Django 1.4. - + However, upgrading to the new CSRF protection framework requires a few important backwards-incompatible changes, detailed in `CSRF Protection`_, below. @@ -74,12 +74,12 @@ * Authors of custom :class:`~django.db.models.Field` subclasses should be aware that a number of methods have had a change in prototype, detailed under `get_db_prep_*() methods on Field`_, below. - + * The internals of template tags have changed somewhat; authors of custom template tags that need to store state (e.g. custom control flow tags) should ensure that their code follows the new rules for `stateful template tags`_ - + * The :func:`~django.contrib.auth.decorators.user_passes_test`, :func:`~django.contrib.auth.decorators.login_required`, and :func:`~django.contrib.auth.decorators.permission_required`, decorators @@ -435,6 +435,8 @@ class CustomModelField(models.Field): # ... + def db_type(self): + # ... def get_db_prep_save(self, value): # ... @@ -451,6 +453,9 @@ class CustomModelField(models.Field): # ... + def db_type(self, connection): + # ... + def get_prep_value(self, value): # ... @@ -467,10 +472,10 @@ # ... These changes are required to support multiple databases -- -``get_db_prep_*`` can no longer make any assumptions regarding the -database for which it is preparing. The ``connection`` argument now -provides the preparation methods with the specific connection for -which the value is being prepared. +``db_type`` and ``get_db_prep_*`` can no longer make any assumptions +regarding the database for which it is preparing. The ``connection`` +argument now provides the preparation methods with the specific +connection for which the value is being prepared. The two new methods exist to differentiate general data-preparation requirements from requirements that are database-specific. The @@ -603,13 +608,13 @@ -------------- ``LazyObject`` is an undocumented-but-often-used utility class used for lazily -wrapping other objects of unknown type. +wrapping other objects of unknown type. In Django 1.1 and earlier, it handled introspection in a non-standard way, depending on wrapped objects implementing a public method named ``get_all_members()``. Since this could easily lead to name clashes, it has been changed to use the standard Python introspection method, involving -``__members__`` and ``__dir__()``. +``__members__`` and ``__dir__()``. If you used ``LazyObject`` in your own code and implemented the ``get_all_members()`` method for wrapped objects, you'll need Copied: django/branches/soc2010/test-refactor/docs/releases/1.3.txt (from rev 13366, django/trunk/docs/releases/1.3.txt) =================================================================== --- django/branches/soc2010/test-refactor/docs/releases/1.3.txt (rev 0) +++ django/branches/soc2010/test-refactor/docs/releases/1.3.txt 2010-06-23 05:23:15 UTC (rev 13391) @@ -0,0 +1,31 @@ +.. _releases-1.3: + +============================================ +Django 1.3 release notes - UNDER DEVELOPMENT +============================================ + +This page documents release notes for the as-yet-unreleased Django +1.3. As such, it's tentative and subject to change. It provides +up-to-date information for those who are following trunk. + +Django 1.3 includes a number of nifty `new features`_, lots of bug +fixes and an easy upgrade path from Django 1.2. + +.. _new features: `What's new in Django 1.3`_ + +.. _backwards-incompatible-changes-1.3: + +Backwards-incompatible changes in 1.3 +===================================== + + + +Features deprecated in 1.3 +========================== + + + +What's new in Django 1.3 +======================== + + Modified: django/branches/soc2010/test-refactor/docs/releases/index.txt =================================================================== --- django/branches/soc2010/test-refactor/docs/releases/index.txt 2010-06-23 05:07:02 UTC (rev 13390) +++ django/branches/soc2010/test-refactor/docs/releases/index.txt 2010-06-23 05:23:15 UTC (rev 13391) @@ -16,6 +16,13 @@ Final releases ============== +1.3 release +----------- +.. toctree:: + :maxdepth: 1 + + 1.3 + 1.2 release ----------- .. toctree:: -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.