From bf162ef8a0c9d4267e4a30ea73ef3d90426a90f4 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 8 Dec 2010 00:22:52 -0500 Subject: load_zcml and scan are also config methods --- pyramid/configuration.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyramid/configuration.py b/pyramid/configuration.py index c0fb8ce78..540fa597e 100644 --- a/pyramid/configuration.py +++ b/pyramid/configuration.py @@ -717,6 +717,7 @@ class Configurator(object): self.manager.pop() return app + @config_method def load_zcml(self, spec='configure.zcml', lock=threading.Lock()): """ Load configuration from a :term:`ZCML` file into the current configuration state. The ``spec`` argument is an @@ -1680,6 +1681,7 @@ class Configurator(object): self.registry.registerUtility(mapper, IRoutesMapper) return mapper + @config_method def scan(self, package=None, categories=None): """ Scan a Python package and any of its subpackages for objects marked with :term:`configuration decoration` such as -- cgit v1.2.3