summaryrefslogtreecommitdiff
path: root/repoze/bfg/paster_templates/alchemy
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 /repoze/bfg/paster_templates/alchemy
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 'repoze/bfg/paster_templates/alchemy')
-rw-r--r--repoze/bfg/paster_templates/alchemy/+package+/run.py_tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/repoze/bfg/paster_templates/alchemy/+package+/run.py_tmpl b/repoze/bfg/paster_templates/alchemy/+package+/run.py_tmpl
index 5eeaf1cba..7ef208c30 100644
--- a/repoze/bfg/paster_templates/alchemy/+package+/run.py_tmpl
+++ b/repoze/bfg/paster_templates/alchemy/+package+/run.py_tmpl
@@ -25,8 +25,8 @@ def app(global_config, **settings):
if db_echo is None:
db_echo = True
get_root = appmaker(db_string, db_echo)
+ config = Configurator(settings=settings, root_factory=get_root)
zcml_file = settings.get('configure_zcml', 'configure.zcml')
- config = Configurator(settings=settings, root_factory=get_root,
- zcml_file=zcml_file)
+ config.load_zcml(zcml_file)
return config.make_wsgi_app()