Michael Merickel
2017-04-02 f5ff7e0dd3a5b8bc1fd6978e361c9ab8391b6960
push the threadlocal registry while config.include executes
1 files modified
11 ■■■■■ changed files
pyramid/config/__init__.py 11 ●●●●● patch | view | raw | blame | history
pyramid/config/__init__.py
@@ -753,6 +753,11 @@
        .. versionadded:: 1.2
           The ``route_prefix`` parameter.
        .. versionchanged:: 1.9
           The included function is wrapped with a call to
           :meth:`pyramid.config.Configurator.begin` and
           :meth:`pyramid.config.Configurator.end` while it is executed.
        """
        # """ <-- emacs
@@ -802,7 +807,11 @@
                )
            configurator.basepath = os.path.dirname(sourcefile)
            configurator.includepath = self.includepath + (spec,)
            c(configurator)
            self.begin()
            try:
                c(configurator)
            finally:
                self.end()
    def add_directive(self, name, directive, action_wrap=True):
        """