- ``pyramid.config.Configurator.with_package`` didn't work if the
Configurator was an old-style ``pyramid.configuration.Configurator``
instance.
| | |
| | | Next release |
| | | ============ |
| | | |
| | | Bug Fixes |
| | | --------- |
| | | |
| | | - ``pyramid.config.Configurator.with_package`` didn't work if the |
| | | Configurator was an old-style ``pyramid.configuration.Configurator`` |
| | | instance. |
| | | |
| | | 1.3a9 (2012-02-22) |
| | | ================== |
| | | |
| | |
| | | session_factory=None, |
| | | autocommit=True, |
| | | route_prefix=None, |
| | | introspection=True, |
| | | ): |
| | | if package is None: |
| | | package = caller_package() |
| | |
| | | session_factory=session_factory, |
| | | autocommit=autocommit, |
| | | route_prefix=route_prefix, |
| | | introspection=introspection, |
| | | ) |
| | | |
| | | deprecated( |
| | |
| | | config = self._makeOne(package='pyramid') |
| | | self.assertEqual(config.package, pyramid) |
| | | |
| | | def test_with_package(self): |
| | | import pyramid |
| | | config = self._makeOne() |
| | | newconfig = config.with_package('pyramid') |
| | | self.assertEqual(newconfig.package, pyramid) |
| | | |
| | | |