- Fixed an issue with the default renderer not working at certain times. See
https://github.com/Pylons/pyramid/issues/249
Closes #249.
| | |
| | | by the Pyramid router, after which it will be the result of |
| | | ``sys.exc_info()``. |
| | | |
| | | Bug Fixes |
| | | --------- |
| | | |
| | | - Fixed an issue with the default renderer not working at certain times. See |
| | | https://github.com/Pylons/pyramid/issues/249 |
| | | |
| | | 1.1 (2011-07-22) |
| | | ================ |
| | | |
| | |
| | | if name and '.' in name: |
| | | rtype = os.path.splitext(name)[1] |
| | | else: |
| | | rtype = name |
| | | # important.. must be a string; cannot be None; see issue 249 |
| | | rtype = name or '' |
| | | |
| | | if registry is None: |
| | | registry = get_current_registry() |
| | |
| | | helper = self._makeOne(registry=Dummy) |
| | | self.assertEqual(helper.settings, {}) |
| | | |
| | | def test_settings_registry_name_is_None(self): |
| | | class Dummy(object): |
| | | settings = None |
| | | helper = self._makeOne(registry=Dummy) |
| | | self.assertEqual(helper.name, None) |
| | | self.assertEqual(helper.type, '') |
| | | |
| | | def test_settings_registry_settings_is_not_None(self): |
| | | class Dummy(object): |
| | | settings = {'a':1} |