From 084cdc68d27299a3aaf6f9a2464dd5b99fbb9947 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Sun, 18 Nov 2018 23:16:20 -0600 Subject: Note what directive takes effect when conflits are resolved with commit() --- docs/narr/advconfig.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/narr/advconfig.rst b/docs/narr/advconfig.rst index f6a6c5b42..0d583029e 100644 --- a/docs/narr/advconfig.rst +++ b/docs/narr/advconfig.rst @@ -168,6 +168,8 @@ Using ``config.commit()`` You can manually commit a configuration by using the :meth:`~pyramid.config.Configurator.commit` method between configuration calls. +After a commit :term:`configuration declaration`\s which would otherwise result in a conflict may be added to a :term:`configurator` and will override previously committed directives. + For example, we prevent conflicts from occurring in the application we examined previously by adding a ``commit``. Here's the application that generates conflicts: -- cgit v1.2.3