summaryrefslogtreecommitdiff
path: root/repoze/bfg/request.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2010-09-15 00:16:54 +0000
committerChris McDonough <chrism@agendaless.com>2010-09-15 00:16:54 +0000
commit2d79938483a98ce293f533d5258dbdc85b2d59a8 (patch)
tree72421c729d4ee874f7e0083c39fe8171b0376c83 /repoze/bfg/request.py
parentb81374bf0295b1fb2e5b094f5fc64a7748be703c (diff)
downloadpyramid-2d79938483a98ce293f533d5258dbdc85b2d59a8.tar.gz
pyramid-2d79938483a98ce293f533d5258dbdc85b2d59a8.tar.bz2
pyramid-2d79938483a98ce293f533d5258dbdc85b2d59a8.zip
Features
-------- - Compatibility with WebOb 1.0. Requirements ------------ - Now requires WebOb >= 1.0. Backwards Incompatibilities --------------------------- - Due to changes introduced WebOb 1.0, the ``repoze.bfg.request.make_request_ascii`` event subscriber no longer works, so it has been removed. This subscriber was meant to be used in a deployment so that code written before BFG 0.7.0 could run unchanged. At this point, such code will need to be rewritten to expect Unicode from ``request.GET``, ``request.POST`` and ``request.params`` or it will need to be changed to use ``request.str_POST``, ``request.str_GET`` and/or ``request.str_params`` instead of the non-``str`` versions of same, as the non-``str`` versions of the same APIs always now perform decoding to Unicode.
Diffstat (limited to 'repoze/bfg/request.py')
-rw-r--r--repoze/bfg/request.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/repoze/bfg/request.py b/repoze/bfg/request.py
index 851962446..f32a7a40c 100644
--- a/repoze/bfg/request.py
+++ b/repoze/bfg/request.py
@@ -6,15 +6,6 @@ from webob import Request as WebobRequest
from repoze.bfg.interfaces import IRequest
-def make_request_ascii(event):
- """ An function that is useful as a
- :class:`repoze.bfg.interfaces.INewRequest` :term:`event`
- :term:`subscriber` that causes the request charset to be ASCII so
- code written before :mod:`repoze.bfg` 0.7.0 can continue to work
- without a change"""
- request = event.request
- request.default_charset = None
-
class Request(WebobRequest):
"""
A subclass of the :term:`WebOb` Request class. An instance of
@@ -41,7 +32,6 @@ class Request(WebobRequest):
response_callbacks = ()
finished_callbacks = ()
exception = None
- default_charset = 'utf-8'
def add_response_callback(self, callback):
"""