Skip to content

Commit

Permalink
add a note about the debug.ini profile and the fact that IUnauthorize…
Browse files Browse the repository at this point in the history
…d exceptions are always handled by zope.publisher regardless of the handleErrors=False argument.
  • Loading branch information
janwijbrand committed Sep 27, 2009
1 parent fe82013 commit 027a3e5
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions doc/upgrade.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,23 @@ Upgrading to 1.0b2 (2009-09-15)

bin/projectname-ctl fg

You can also start it with ``parts/etc/debug.ini`` to get exception
formatting.
Alternatively there's a profile available that can help debugging errors in
your application::

bin/paster serve parts/etc/debug.ini

When using this profile it is not the ``zope.publisher`` that handles the
exceptions that are raised, but a special middleware is. This middleware
then provides a pdb-like debugging user interdace in the browser.

Note that the ``IUnauthorized`` exception is treated specially: Grok will
make sure that this types of exception is actaully still handled by
``zope.publisher`` in order to make login forms or Basic Auth
authentication still function properly.

Also note that as a consequence the ``handleErrors`` attribute on
``zope.testbrowser.testing.Browser`` instances used in functional tests
does not effect the ``IUnauthorized`` exception.

Interpreter name has been changed from ``bin/python`` to
``bin/grokpy`` to avoid conflicts with virtualenv.
Expand Down

0 comments on commit 027a3e5

Please sign in to comment.