summaryrefslogtreecommitdiff
path: root/docs/narr/scanning.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-11-27 02:01:45 +0000
committerChris McDonough <chrism@agendaless.com>2009-11-27 02:01:45 +0000
commitbdd2b124c1165fc6fec8c4bd725f0f910b169ecc (patch)
tree09ce4cbcd860f53a6666183362bed35c3bda8850 /docs/narr/scanning.rst
parent9d9ffbb5cb587a2bb5481884a264b1527c393265 (diff)
downloadpyramid-bdd2b124c1165fc6fec8c4bd725f0f910b169ecc.tar.gz
pyramid-bdd2b124c1165fc6fec8c4bd725f0f910b169ecc.tar.bz2
pyramid-bdd2b124c1165fc6fec8c4bd725f0f910b169ecc.zip
Get rid of ``zcml_file`` argument in configurator constructor in favor of the load_zcml API.
Get rid of hook_zca argument in configurator constructor in favor of a ``hook_zca`` method. Provide an ``unhook_zca`` method.
Diffstat (limited to 'docs/narr/scanning.rst')
-rw-r--r--docs/narr/scanning.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/narr/scanning.rst b/docs/narr/scanning.rst
index 084d550d6..477b2144c 100644
--- a/docs/narr/scanning.rst
+++ b/docs/narr/scanning.rst
@@ -123,7 +123,8 @@ of the below examples produces the same application configuration.
if __name__ == '__main__':
from repoze.bfg.configuration import Configurator
- config = Configurator(zcml_file='configure.zcml')
+ config = Configurator()
+ config.load_zcml('configure.zcml')
.. code-block:: xml
:linenos:
@@ -172,7 +173,8 @@ of the below examples produces the same application configuration.
if __name__ == '__main__':
from repoze.bfg.configuration import Configurator
- config = Configurator(zcml_file='configure.zcml')
+ config = Configurator()
+ config.load_zcml('configure.zcml')
.. code-block:: xml
:linenos: