summaryrefslogtreecommitdiff
path: root/docs/whatsnew-1.6.rst
diff options
context:
space:
mode:
authorBert JW Regeer <bertjw@regeer.org>2016-02-21 16:10:24 -0700
committerBert JW Regeer <bertjw@regeer.org>2016-02-21 16:10:24 -0700
commit1c4c2bccdff38c8c7e0fefd26d65a875fd50d8ad (patch)
tree0db5dd6f25a9166c118c4a24d66f281f43b0aeba /docs/whatsnew-1.6.rst
parent30ae71b4a7ad97a649165374a75a70f4b64ae25c (diff)
parentaa6e5fe4f1190e6df123e3f6ccde9deb789eb344 (diff)
downloadpyramid-1c4c2bccdff38c8c7e0fefd26d65a875fd50d8ad.tar.gz
pyramid-1c4c2bccdff38c8c7e0fefd26d65a875fd50d8ad.tar.bz2
pyramid-1c4c2bccdff38c8c7e0fefd26d65a875fd50d8ad.zip
Merge branch 'master' into feature/configurable-view-deriver
Diffstat (limited to 'docs/whatsnew-1.6.rst')
-rw-r--r--docs/whatsnew-1.6.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/whatsnew-1.6.rst b/docs/whatsnew-1.6.rst
index bdfcf34ab..f5c307b5d 100644
--- a/docs/whatsnew-1.6.rst
+++ b/docs/whatsnew-1.6.rst
@@ -41,6 +41,18 @@ Backwards Incompatibilities
This does not change the API of a renderer. See
https://github.com/Pylons/pyramid/pull/1563
+- In an effort to combat a common issue it is now a
+ :class:`~pyramid.exceptions.ConfigurationError` to register a view
+ callable that is actually an unbound method when using the default view
+ mapper. As unbound methods do not exist in PY3+ possible errors are detected
+ by checking if the first parameter is named ``self``. For example,
+ `config.add_view(ViewClass.some_method, ...)` should actually be
+ `config.add_view(ViewClass, attr='some_method)'`. This was always an issue
+ in Pyramid on PY2 but the backward incompatibility is on PY3+ where you may
+ not use a function with the first parameter named ``self``. In this case
+ it looks too much like a common error and the exception will be raised.
+ See https://github.com/Pylons/pyramid/pull/1498
+
Feature Additions
-----------------