diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-11-27 02:01:45 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-11-27 02:01:45 +0000 |
| commit | bdd2b124c1165fc6fec8c4bd725f0f910b169ecc (patch) | |
| tree | 09ce4cbcd860f53a6666183362bed35c3bda8850 /docs/narr/MyProject | |
| parent | 9d9ffbb5cb587a2bb5481884a264b1527c393265 (diff) | |
| download | pyramid-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/MyProject')
| -rw-r--r-- | docs/narr/MyProject/myproject/run.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/narr/MyProject/myproject/run.py b/docs/narr/MyProject/myproject/run.py index a9d9973bd..0d7647aa7 100644 --- a/docs/narr/MyProject/myproject/run.py +++ b/docs/narr/MyProject/myproject/run.py @@ -5,9 +5,9 @@ def app(global_config, **settings): """ This function returns a repoze.bfg.router.Router object. It is usually called by the PasteDeploy framework during ``paster serve``""" + config = Configurator(root_factory=get_root, settings=settings) zcml_file = settings.get('configure_zcml', 'configure.zcml') - config = Configurator(root_factory=get_root, settings=settings, - zcml_file=zcml_file) + config.load_zcml(zcml_file) return config.make_wsgi_app() |
