summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--repoze/bfg/paster_templates/zodb/+project+.ini_tmpl7
-rw-r--r--repoze/bfg/paster_templates/zodb/setup.py_tmpl1
2 files changed, 7 insertions, 1 deletions
diff --git a/repoze/bfg/paster_templates/zodb/+project+.ini_tmpl b/repoze/bfg/paster_templates/zodb/+project+.ini_tmpl
index 93689b4e8..70f69322d 100644
--- a/repoze/bfg/paster_templates/zodb/+project+.ini_tmpl
+++ b/repoze/bfg/paster_templates/zodb/+project+.ini_tmpl
@@ -1,13 +1,18 @@
[DEFAULT]
debug = true
-[app:main]
+[app:zodb]
use = egg:{{project}}#app
reload_templates = true
debug_authorization = false
debug_notfound = false
zodb_uri = file://%(here)s/Data.fs?connection_cache_size=20000
+[pipeline:main]
+pipeline =
+ egg:repoze.tm2#tm
+ zodb
+
[server:main]
use = egg:Paste#http
host = 0.0.0.0
diff --git a/repoze/bfg/paster_templates/zodb/setup.py_tmpl b/repoze/bfg/paster_templates/zodb/setup.py_tmpl
index b4308c301..dd2665e20 100644
--- a/repoze/bfg/paster_templates/zodb/setup.py_tmpl
+++ b/repoze/bfg/paster_templates/zodb/setup.py_tmpl
@@ -32,6 +32,7 @@ setup(name='{{project}}',
install_requires=[
'repoze.bfg',
'repoze.zodbconn',
+ 'repoze.tm2',
'ZODB3',
],
tests_require=[