From 2d79938483a98ce293f533d5258dbdc85b2d59a8 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 15 Sep 2010 00:16:54 +0000 Subject: 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. --- repoze/bfg/request.py | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'repoze/bfg/request.py') 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): """ -- cgit v1.2.3