summaryrefslogtreecommitdiff
path: root/repoze
diff options
context:
space:
mode:
Diffstat (limited to 'repoze')
-rw-r--r--repoze/bfg/paster_templates/alchemy/+package+/run.py_tmpl5
-rw-r--r--repoze/bfg/paster_templates/routesalchemy/+package+/run.py_tmpl5
-rw-r--r--repoze/bfg/paster_templates/starter/+package+/run.py_tmpl8
-rw-r--r--repoze/bfg/paster_templates/zodb/+package+/run.py_tmpl5
4 files changed, 14 insertions, 9 deletions
diff --git a/repoze/bfg/paster_templates/alchemy/+package+/run.py_tmpl b/repoze/bfg/paster_templates/alchemy/+package+/run.py_tmpl
index 0c8f31ec8..c290431c0 100644
--- a/repoze/bfg/paster_templates/alchemy/+package+/run.py_tmpl
+++ b/repoze/bfg/paster_templates/alchemy/+package+/run.py_tmpl
@@ -14,9 +14,10 @@ def handle_teardown(event):
environ['usermanager.sasession'] = Cleanup(DBSession.remove)
def app(global_config, **settings):
- """ This function returns a ``repoze.bfg`` WSGI application.
+ """ This function returns a WSGI application.
- It is usually called by the PasteDeploy framework during ``paster serve``.
+ It is usually called by the PasteDeploy framework during
+ ``paster serve``.
"""
zcml_file = settings.get('configure_zcml', 'configure.zcml')
db_string = settings.get('db_string')
diff --git a/repoze/bfg/paster_templates/routesalchemy/+package+/run.py_tmpl b/repoze/bfg/paster_templates/routesalchemy/+package+/run.py_tmpl
index 066dbecc0..810040297 100644
--- a/repoze/bfg/paster_templates/routesalchemy/+package+/run.py_tmpl
+++ b/repoze/bfg/paster_templates/routesalchemy/+package+/run.py_tmpl
@@ -14,9 +14,10 @@ def handle_teardown(event):
environ['{{package}}.sasession'] = Cleanup(DBSession.remove)
def app(global_config, **settings):
- """ This function returns a ``repoze.bfg`` WSGI application.
+ """ This function returns a WSGI application.
- It is usually called by the PasteDeploy framework during ``paster serve``.
+ It is usually called by the PasteDeploy framework during
+ ``paster serve``.
"""
zcml_file = settings.get('configure_zcml', 'configure.zcml')
db_string = settings.get('db_string')
diff --git a/repoze/bfg/paster_templates/starter/+package+/run.py_tmpl b/repoze/bfg/paster_templates/starter/+package+/run.py_tmpl
index 4505ed001..74876f3f4 100644
--- a/repoze/bfg/paster_templates/starter/+package+/run.py_tmpl
+++ b/repoze/bfg/paster_templates/starter/+package+/run.py_tmpl
@@ -2,9 +2,11 @@ from repoze.bfg.configuration import Configurator
from {{package}}.models import get_root
def app(global_config, **settings):
- """ This function returns a ``repoze.bfg`` application object. It
- is usually called by the PasteDeploy framework during ``paster
- serve``"""
+ """ This function returns a WSGI application.
+
+ It is usually called by the PasteDeploy framework during
+ ``paster serve``.
+ """
zcml_file = settings.get('configure_zcml', 'configure.zcml')
config = Configurator(root_factory=get_root, settings=settings)
config.begin()
diff --git a/repoze/bfg/paster_templates/zodb/+package+/run.py_tmpl b/repoze/bfg/paster_templates/zodb/+package+/run.py_tmpl
index 22e2048e0..c0a245089 100644
--- a/repoze/bfg/paster_templates/zodb/+package+/run.py_tmpl
+++ b/repoze/bfg/paster_templates/zodb/+package+/run.py_tmpl
@@ -3,9 +3,10 @@ from repoze.zodbconn.finder import PersistentApplicationFinder
from {{package}}.models import appmaker
def app(global_config, **settings):
- """ This function returns a ``repoze.bfg`` WSGI application object.
+ """ This function returns a WSGI application.
- It is usually called by the PasteDeploy framework during ``paster serve``.
+ It is usually called by the PasteDeploy framework during
+ ``paster serve``.
"""
zodb_uri = settings.get('zodb_uri')
zcml_file = settings.get('configure_zcml', 'configure.zcml')