Changeset 7200
- Timestamp:
- 03/07/08 21:06:30 (6 months ago)
- Files:
-
- django/trunk/django/core/handlers/modpython.py (modified) (2 diffs)
- django/trunk/tests/regressiontests/requests (added)
- django/trunk/tests/regressiontests/requests/__init__.py (added)
- django/trunk/tests/regressiontests/requests/models.py (added)
- django/trunk/tests/regressiontests/requests/tests.py (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/handlers/modpython.py
r6826 r7200 7 7 from django.dispatch import dispatcher 8 8 from django.utils import datastructures 9 from django.utils.encoding import force_unicode 9 from django.utils.encoding import force_unicode, smart_str 10 10 11 11 # NOTE: do *not* import settings (or any module which eventually imports … … 37 37 except: 38 38 meta = '<could not parse>' 39 return '<ModPythonRequest\npath:%s,\nGET:%s,\nPOST:%s,\nCOOKIES:%s,\nMETA:%s>' % \ 40 (self.path, get, post, cookies, meta) 39 return smart_str(u'<ModPythonRequest\npath:%s,\nGET:%s,\nPOST:%s,\nCOOKIES:%s,\nMETA:%s>' % 40 (self.path, unicode(get), unicode(post), 41 unicode(cookies), unicode(meta))) 41 42 42 43 def get_full_path(self):
