Changeset 2688
- Timestamp:
- 04/12/06 08:39:34 (2 years ago)
- Files:
-
- django/branches/magic-removal/django/contrib/admin/templatetags/admin_list.py (modified) (1 diff)
- django/branches/magic-removal/django/core/servers/basehttp.py (modified) (1 diff)
- django/branches/magic-removal/django/db/models/manipulators.py (modified) (1 diff)
- django/branches/magic-removal/django/db/models/query.py (modified) (1 diff)
- django/branches/magic-removal/django/utils/_threading_local.py (modified) (1 diff)
- django/branches/magic-removal/docs/modpython.txt (modified) (1 diff)
- django/branches/magic-removal/tests/doctest.py (modified) (2 diffs)
- django/branches/magic-removal/tests/modeltests/basic/models.py (modified) (1 diff)
- django/branches/magic-removal/tests/othertests/cache.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/magic-removal/django/contrib/admin/templatetags/admin_list.py
r2651 r2688 81 81 header = lookup_opts.verbose_name 82 82 else: 83 attr = getattr(cl.model, field_name) # Let AttributeErrors prop ogate.83 attr = getattr(cl.model, field_name) # Let AttributeErrors propagate. 84 84 try: 85 85 header = attr.short_description django/branches/magic-removal/django/core/servers/basehttp.py
r2000 r2688 47 47 48 48 # Regular expression that matches `special' characters in parameters, the 49 # exist ance of which force quoting of the parameter value.49 # existence of which force quoting of the parameter value. 50 50 tspecials = re.compile(r'[ \(\)<>@,;:\\"/\[\]\?=]') 51 51 django/branches/magic-removal/django/db/models/manipulators.py
r2651 r2688 261 261 # Sanity check -- Make sure the "parent" object exists. 262 262 # For example, make sure the Place exists for the Restaurant. 263 # Let the ObjectDoesNotExist exception prop ogate up.263 # Let the ObjectDoesNotExist exception propagate up. 264 264 lookup_kwargs = self.opts.one_to_one_field.rel.limit_choices_to 265 265 lookup_kwargs['%s__exact' % self.opts.one_to_one_field.rel.field_name] = obj_key django/branches/magic-removal/django/db/models/query.py
r2663 r2688 269 269 assert kind in ("month", "year", "day"), "'kind' must be one of 'year', 'month' or 'day'." 270 270 assert order in ('ASC', 'DESC'), "'order' must be either 'ASC' or 'DESC'." 271 # Let the FieldDoesNotExist exception prop ogate.271 # Let the FieldDoesNotExist exception propagate. 272 272 field = self.model._meta.get_field(field_name, many_to_many=False) 273 273 assert isinstance(field, DateField), "%r isn't a DateField." % field_name django/branches/magic-removal/django/utils/_threading_local.py
r2581 r2688 150 150 151 151 # We need to create the thread dict in anticipation of 152 # __init__ being called, to make s ire we don't cal it152 # __init__ being called, to make sure we don't call it 153 153 # again ourselves. 154 154 dict = object.__getattribute__(self, '__dict__') django/branches/magic-removal/docs/modpython.txt
r2320 r2688 191 191 192 192 When you use Apache/mod_python, errors will be caught by Django -- in other 193 words, they won't prop ogate to the Apache level and won't appear in the Apache193 words, they won't propagate to the Apache level and won't appear in the Apache 194 194 ``error_log``. 195 195 django/branches/magic-removal/tests/doctest.py
r336 r2688 847 847 globs.update(extraglobs) 848 848 849 # Recursively exp ore `obj`, extracting DocTests.849 # Recursively explore `obj`, extracting DocTests. 850 850 tests = [] 851 851 self._find(tests, obj, name, module, source_lines, globs, {}) … … 1211 1211 for examplenum, example in enumerate(test.examples): 1212 1212 1213 # If REPORT_ONLY_FIRST_FAILURE is set, then sup ress1213 # If REPORT_ONLY_FIRST_FAILURE is set, then suppress 1214 1214 # reporting after the first failure. 1215 1215 quiet = (self.optionflags & REPORT_ONLY_FIRST_FAILURE and django/branches/magic-removal/tests/modeltests/basic/models.py
r2485 r2688 331 331 API_TESTS += """ 332 332 333 # You can manually specify the primary key when creating a new obje t333 # You can manually specify the primary key when creating a new object. 334 334 >>> a101 = Article(id=101, headline='Article 101', pub_date=datetime(2005, 7, 31, 12, 30, 45)) 335 335 >>> a101.save() django/branches/magic-removal/tests/othertests/cache.py
r367 r2688 16 16 assert cache.get("key") == "value" 17 17 18 # get with non-exist ant keys18 # get with non-existent keys 19 19 assert cache.get("does not exist") is None 20 20 assert cache.get("does not exist", "bang!") == "bang!"
