Ticket #11066: the-the-documentation.diff
File the-the-documentation.diff, 8.8 KB (added by , 16 years ago) |
---|
-
django/test/_doctest.py
1 1 # This is a slightly modified version of the doctest.py that shipped with Python 2.4 2 # It incorporates changes that have been submitted t hethe Python ticket tracker2 # It incorporates changes that have been submitted to the Python ticket tracker 3 3 # as ticket #1521051. These changes allow for a DoctestRunner and Doctest base 4 4 # class to be specified when constructing a DoctestSuite. 5 5 -
django/core/files/uploadhandler.py
152 152 Use the content_length to signal whether or not this handler should be in use. 153 153 """ 154 154 # Check the content-length header to see if we should 155 # If the thepost is too large, we cannot use the Memory handler.155 # If the post is too large, we cannot use the Memory handler. 156 156 if content_length > settings.FILE_UPLOAD_MAX_MEMORY_SIZE: 157 157 self.activated = False 158 158 else: -
django/views/generic/create_update.py
71 71 def lookup_object(model, object_id, slug, slug_field): 72 72 """ 73 73 Return the ``model`` object with the passed ``object_id``. If 74 ``object_id`` is None, then return the theobject whose ``slug_field``74 ``object_id`` is None, then return the object whose ``slug_field`` 75 75 equals the passed ``slug``. If ``slug`` and ``slug_field`` are not passed, 76 76 then raise Http404 exception. 77 77 """ -
django/utils/feedgenerator.py
121 121 122 122 def add_root_elements(self, handler): 123 123 """ 124 Add elements in the theroot (i.e. feed/channel) element. Called124 Add elements in the root (i.e. feed/channel) element. Called 125 125 from write(). 126 126 """ 127 127 pass -
django/contrib/gis/db/backend/spatialite/creation.py
15 15 if settings.DATABASE_ENGINE != 'sqlite3': 16 16 raise Exception('SpatiaLite database creation only supported on sqlite3 platform.') 17 17 18 # Getting the test database name using the theSQLite backend's18 # Getting the test database name using the SQLite backend's 19 19 # `_create_test_db`. Unless `TEST_DATABASE_NAME` is defined, 20 20 # it returns ":memory:". 21 21 db_name = connection.creation._create_test_db(verbosity, autoclobber) -
django/contrib/gis/measure.py
41 41 class MeasureBase(object): 42 42 def default_units(self, kwargs): 43 43 """ 44 Return the unit value and the thedefault units specified44 Return the unit value and the default units specified 45 45 from the given keyword arguments dictionary. 46 46 """ 47 47 val = 0.0 -
django/contrib/gis/geos/libgeos.py
30 30 else: 31 31 raise ImportError('Unsupported OS "%s"' % os.name) 32 32 33 # Using the ctypes `find_library` utility to find the thepath to the GEOS33 # Using the ctypes `find_library` utility to find the path to the GEOS 34 34 # shared library. This is better than manually specifiying each library name 35 35 # and extension (e.g., libgeos_c.[so|so.1|dylib].). 36 36 if lib_names: -
django/contrib/gis/templates/gis/admin/openlayers.html
15 15 </style> 16 16 <!--[if IE]> 17 17 <style type="text/css"> 18 /* This fixes the themouse offset issues in IE. */18 /* This fixes the mouse offset issues in IE. */ 19 19 #{{ id }}_admin_map { position: static; vertical-align: top; } 20 20 /* `font-size: 0` fixes the 1px border between tiles, but borks LayerSwitcher. 21 21 Thus, this is disabled until a better fix is found. -
django/contrib/csrf/tests.py
59 59 # Check the post processing 60 60 def test_process_response_no_session(self): 61 61 """ 62 Check the thepost-processor does nothing if no session active62 Check the post-processor does nothing if no session active 63 63 """ 64 64 req = self._get_GET_no_session_request() 65 65 resp = self._get_post_form_response() -
django/template/defaulttags.py
1136 1136 1137 1137 <img src='bar.gif' height='10' width='{% widthratio this_value max_value 100 %}' /> 1138 1138 1139 Above, if ``this_value`` is 175 and ``max_value`` is 200, the theimage in1139 Above, if ``this_value`` is 175 and ``max_value`` is 200, the image in 1140 1140 the above example will be 88 pixels wide (because 175/200 = .875; 1141 1141 .875 * 100 = 87.5 which is rounded up to 88). 1142 1142 """ -
tests/modeltests/get_object_or_404/models.py
55 55 >>> get_object_or_404(Article, title__contains="Run") 56 56 <Article: Run away!> 57 57 58 # We can also use the theArticle manager through an Author object.58 # We can also use the Article manager through an Author object. 59 59 >>> get_object_or_404(a.article_set, title__contains="Run") 60 60 <Article: Run away!> 61 61 -
tests/regressiontests/templates/loaders.py
45 45 Creates a mock egg with a list of resources. 46 46 47 47 name: The name of the module. 48 resources: A dictionary of resources. Keys are the names and values the thedata.48 resources: A dictionary of resources. Keys are the names and values the data. 49 49 """ 50 50 egg = imp.new_module(name) 51 51 egg.__loader__ = MockLoader() -
docs/internals/contributing.txt
325 325 tickets, we keep all the discussion in one place, which helps everyone. 326 326 327 327 "worksforme" 328 Used when the t he ticket doesn't contain enough detail to replicate328 Used when the ticket doesn't contain enough detail to replicate 329 329 the original bug. 330 330 331 331 If you believe that the ticket was closed in error -- because you're -
docs/ref/contrib/admin/actions.txt
187 187 --------------------------------------- 188 188 189 189 By default, after an action is performed the user is simply redirected back 190 t hethe original change list page. However, some actions, especially more190 to the original change list page. However, some actions, especially more 191 191 complex ones, will need to return intermediate pages. For example, the 192 192 built-in delete action asks for confirmation before deleting the selected 193 193 objects. -
docs/ref/authbackends.txt
22 22 .. class:: ModelBackend 23 23 24 24 This is the default authentication backend used by Django. It 25 authenticates using usernames and passwords stored in the the25 authenticates using usernames and passwords stored in the 26 26 :class:`~django.contrib.auth.models.User` model. 27 27 28 28