Merge branch '1.3-branch'
1 files added
6 files modified
| | |
| | | Bug Fixes |
| | | --------- |
| | | |
| | | - When ``pyramid.wsgi.wsgiapp2`` calls the downstream WSGI app, the |
| | | app's environ will no longer have (deprecated and potentially misleading) |
| | | ``bfg.routes.matchdict`` or ``bfg.routes.route`` keys in it. |
| | | |
| | | 1.3b3 (2012-03-17) |
| | | ================== |
| | | |
| | | Bug Fixes |
| | | --------- |
| | | |
| | | - ``config.add_view(<aninstancemethod>)`` raised AttributeError involving |
| | | ``__text__``. See https://github.com/Pylons/pyramid/issues/461 |
| | | |
| | |
| | | # other places throughout the built documents. |
| | | # |
| | | # The short X.Y version. |
| | | version = '1.3b2' |
| | | version = '1.3b3' |
| | | |
| | | # The full version, including alpha/beta/rc tags. |
| | | release = version |
| | |
| | | Python 3 Compatibility |
| | | ~~~~~~~~~~~~~~~~~~~~~~ |
| | | |
| | | .. image:: python-3.png |
| | | |
| | | Pyramid continues to run on Python 2, but Pyramid is now also Python 3 |
| | | compatible. To use Pyramid under Python 3, Python 3.2 or better is required. |
| | | |
| | |
| | | new_request = request.copy() |
| | | new_request.environ['SCRIPT_NAME'] = new_script_name |
| | | new_request.environ['PATH_INFO'] = new_path_info |
| | | |
| | | # In case downstream WSGI app is a Pyramid app, hack around existence of |
| | | # these envars until we can safely remove them (see router.py); in any |
| | | # case, even if these get removed, it might be better to not copy the |
| | | # existing environ but to create a new one instead. |
| | | if 'bfg.routes.route' in new_request.environ: |
| | | del new_request.environ['bfg.routes.route'] |
| | | if 'bfg.routes.matchdict' in new_request.environ: |
| | | del new_request.environ['bfg.routes.matchdict'] |
| | | |
| | | return new_request.get_response(app) |
| | |
| | | self.assertEqual(request.environ['SCRIPT_NAME'], '/' + encoded) |
| | | self.assertEqual(request.environ['PATH_INFO'], '/' + encoded) |
| | | |
| | | def test_it_removes_bfg_routes_info(self): |
| | | request = DummyRequest({}) |
| | | request.environ['bfg.routes.route'] = True |
| | | request.environ['bfg.routes.matchdict'] = True |
| | | response = self._callFUT(request, 'app') |
| | | self.assertTrue(request.copied) |
| | | self.assertEqual(response, 'app') |
| | | self.assertEqual(request.environ['SCRIPT_NAME'], '') |
| | | self.assertEqual(request.environ['PATH_INFO'], '/') |
| | | self.assertFalse('bfg.routes.route' in request.environ) |
| | | self.assertFalse('bfg.routes.matchdict' in request.environ) |
| | | |
| | | class DummyRequest: |
| | | def __init__(self, environ=None): |
| | | if environ is None: |
| | |
| | | testing_extras = tests_require + ['nose', 'coverage'] |
| | | |
| | | setup(name='pyramid', |
| | | version='1.3b2', |
| | | version='1.3b3', |
| | | description=('The Pyramid web application development framework, a ' |
| | | 'Pylons project'), |
| | | long_description=README + '\n\n' + CHANGES, |