From ca55f9754876c572fe638553aebc90120f12d6fe Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 6 Aug 2011 20:29:57 -0400 Subject: readd bw compat for toolbar (temporary) --- pyramid/config.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyramid/config.py b/pyramid/config.py index 126111269..a12df8ef7 100644 --- a/pyramid/config.py +++ b/pyramid/config.py @@ -937,6 +937,11 @@ class Configurator(object): explicit=False) tweens.add(name, tween_factory, explicit) self.action(('tween', name, explicit), register) + + @action_method + def add_request_handler(self, factory, name): # pragma: no cover + # XXX bw compat for debugtoolbar + return self._add_tween(factory, explicit=False) @action_method def add_subscriber(self, subscriber, iface=None): -- cgit v1.2.3