Ticket #11066: the-the-documentation.diff

File the-the-documentation.diff, 8.8 KB (added by kaikuehne, 16 years ago)
  • django/test/_doctest.py

     
    11# This is a slightly modified version of the doctest.py that shipped with Python 2.4
    2 # It incorporates changes that have been submitted the the Python ticket tracker
     2# It incorporates changes that have been submitted to the Python ticket tracker
    33# as ticket #1521051. These changes allow for a DoctestRunner and Doctest base
    44# class to be specified when constructing a DoctestSuite.
    55
  • django/core/files/uploadhandler.py

     
    152152        Use the content_length to signal whether or not this handler should be in use.
    153153        """
    154154        # Check the content-length header to see if we should
    155         # If the the post is too large, we cannot use the Memory handler.
     155        # If the post is too large, we cannot use the Memory handler.
    156156        if content_length > settings.FILE_UPLOAD_MAX_MEMORY_SIZE:
    157157            self.activated = False
    158158        else:
  • django/views/generic/create_update.py

     
    7171def lookup_object(model, object_id, slug, slug_field):
    7272    """
    7373    Return the ``model`` object with the passed ``object_id``.  If
    74     ``object_id`` is None, then return the the object whose ``slug_field``
     74    ``object_id`` is None, then return the object whose ``slug_field``
    7575    equals the passed ``slug``.  If ``slug`` and ``slug_field`` are not passed,
    7676    then raise Http404 exception.
    7777    """
  • django/utils/feedgenerator.py

     
    121121
    122122    def add_root_elements(self, handler):
    123123        """
    124         Add elements in the the root (i.e. feed/channel) element. Called
     124        Add elements in the root (i.e. feed/channel) element. Called
    125125        from write().
    126126        """
    127127        pass
  • django/contrib/gis/db/backend/spatialite/creation.py

     
    1515    if settings.DATABASE_ENGINE != 'sqlite3':
    1616        raise Exception('SpatiaLite database creation only supported on sqlite3 platform.')
    1717
    18     # Getting the test database name using the the SQLite backend's
     18    # Getting the test database name using the SQLite backend's
    1919    # `_create_test_db`.  Unless `TEST_DATABASE_NAME` is defined,
    2020    # it returns ":memory:".
    2121    db_name = connection.creation._create_test_db(verbosity, autoclobber)
  • django/contrib/gis/measure.py

     
    4141class MeasureBase(object):
    4242    def default_units(self, kwargs):
    4343        """
    44         Return the unit value and the the default units specified
     44        Return the unit value and the default units specified
    4545        from the given keyword arguments dictionary.
    4646        """
    4747        val = 0.0
  • django/contrib/gis/geos/libgeos.py

     
    3030else:
    3131    raise ImportError('Unsupported OS "%s"' % os.name)
    3232
    33 # Using the ctypes `find_library` utility to find the the path to the GEOS
     33# Using the ctypes `find_library` utility to find the path to the GEOS
    3434# shared library.  This is better than manually specifiying each library name
    3535# and extension (e.g., libgeos_c.[so|so.1|dylib].).
    3636if lib_names:
  • django/contrib/gis/templates/gis/admin/openlayers.html

     
    1515</style>
    1616<!--[if IE]>
    1717<style type="text/css">
    18   /* This fixes the the mouse offset issues in IE. */
     18  /* This fixes the mouse offset issues in IE. */
    1919  #{{ id }}_admin_map { position: static; vertical-align: top; }
    2020  /* `font-size: 0` fixes the 1px border between tiles, but borks LayerSwitcher.
    2121      Thus, this is disabled until a better fix is found.
  • django/contrib/csrf/tests.py

     
    5959    # Check the post processing
    6060    def test_process_response_no_session(self):
    6161        """
    62         Check the the post-processor does nothing if no session active
     62        Check the post-processor does nothing if no session active
    6363        """
    6464        req = self._get_GET_no_session_request()
    6565        resp = self._get_post_form_response()
  • django/template/defaulttags.py

     
    11361136
    11371137        <img src='bar.gif' height='10' width='{% widthratio this_value max_value 100 %}' />
    11381138
    1139     Above, if ``this_value`` is 175 and ``max_value`` is 200, the the image in
     1139    Above, if ``this_value`` is 175 and ``max_value`` is 200, the image in
    11401140    the above example will be 88 pixels wide (because 175/200 = .875;
    11411141    .875 * 100 = 87.5 which is rounded up to 88).
    11421142    """
  • tests/modeltests/get_object_or_404/models.py

     
    5555>>> get_object_or_404(Article, title__contains="Run")
    5656<Article: Run away!>
    5757
    58 # We can also use the the Article manager through an Author object.
     58# We can also use the Article manager through an Author object.
    5959>>> get_object_or_404(a.article_set, title__contains="Run")
    6060<Article: Run away!>
    6161
  • tests/regressiontests/templates/loaders.py

     
    4545    Creates a mock egg with a list of resources.
    4646
    4747    name: The name of the module.
    48     resources: A dictionary of resources. Keys are the names and values the the data.
     48    resources: A dictionary of resources. Keys are the names and values the data.
    4949    """
    5050    egg = imp.new_module(name)
    5151    egg.__loader__ = MockLoader()
  • docs/internals/contributing.txt

     
    325325        tickets, we keep all the discussion in one place, which helps everyone.
    326326
    327327    "worksforme"
    328         Used when the the ticket doesn't contain enough detail to replicate
     328        Used when the ticket doesn't contain enough detail to replicate
    329329        the original bug.
    330330
    331331If you believe that the ticket was closed in error -- because you're
  • docs/ref/contrib/admin/actions.txt

     
    187187---------------------------------------
    188188
    189189By default, after an action is performed the user is simply redirected back
    190 the the original change list page. However, some actions, especially more
     190to the original change list page. However, some actions, especially more
    191191complex ones, will need to return intermediate pages. For example, the
    192192built-in delete action asks for confirmation before deleting the selected
    193193objects.
  • docs/ref/authbackends.txt

     
    2222.. class:: ModelBackend
    2323
    2424    This is the default authentication backend used by Django.  It
    25     authenticates using usernames and passwords stored in the the
     25    authenticates using usernames and passwords stored in the
    2626    :class:`~django.contrib.auth.models.User` model.
    2727
    2828
Back to Top