From 6e24772394456391fa2bd247653c20d21a47a316 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 20 Jan 2011 16:46:12 -0500 Subject: configure tm in production.ini with default_commit_veto --- pyramid/paster_templates/alchemy/production.ini_tmpl | 6 +++++- pyramid/paster_templates/routesalchemy/production.ini_tmpl | 6 +++++- pyramid/paster_templates/zodb/production.ini_tmpl | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/pyramid/paster_templates/alchemy/production.ini_tmpl b/pyramid/paster_templates/alchemy/production.ini_tmpl index 1d21304db..7f1332310 100644 --- a/pyramid/paster_templates/alchemy/production.ini_tmpl +++ b/pyramid/paster_templates/alchemy/production.ini_tmpl @@ -22,10 +22,14 @@ debug = false ;smtp_use_tls = ;error_message = +[filter:tm] +use = egg:repoze.tm2#tm +commit_veto = repoze.tm:default_commit_veto + [pipeline:main] pipeline = weberror - egg:repoze.tm2#tm + tm {{project}} [server:main] diff --git a/pyramid/paster_templates/routesalchemy/production.ini_tmpl b/pyramid/paster_templates/routesalchemy/production.ini_tmpl index 1d21304db..7f1332310 100644 --- a/pyramid/paster_templates/routesalchemy/production.ini_tmpl +++ b/pyramid/paster_templates/routesalchemy/production.ini_tmpl @@ -22,10 +22,14 @@ debug = false ;smtp_use_tls = ;error_message = +[filter:tm] +use = egg:repoze.tm2#tm +commit_veto = repoze.tm:default_commit_veto + [pipeline:main] pipeline = weberror - egg:repoze.tm2#tm + tm {{project}} [server:main] diff --git a/pyramid/paster_templates/zodb/production.ini_tmpl b/pyramid/paster_templates/zodb/production.ini_tmpl index 1741763ae..93aeee358 100644 --- a/pyramid/paster_templates/zodb/production.ini_tmpl +++ b/pyramid/paster_templates/zodb/production.ini_tmpl @@ -22,11 +22,15 @@ debug = false ;smtp_use_tls = ;error_message = +[filter:tm] +use = egg:repoze.tm2#tm +commit_veto = repoze.tm:default_commit_veto + [pipeline:main] pipeline = weberror egg:repoze.zodbconn#closer - egg:repoze.tm#tm + tm {{project}} [server:main] -- cgit v1.2.3