summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Junod <frederic.junod@camptocamp.com>2012-09-24 14:25:42 +0200
committerFrederic Junod <frederic.junod@camptocamp.com>2012-09-24 14:25:42 +0200
commit7c45f076c1dab4e582581530085824a801970b06 (patch)
tree64e618e860277c645ff4ba2d589e2f0bc387f1c8
parentc97c84a47826488a21d2f6fbf8716df914b0fa69 (diff)
downloadbottle-7c45f076c1dab4e582581530085824a801970b06.tar.gz
plugin.apply: rename context to route
-rw-r--r--bottle.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bottle.py b/bottle.py
index f0c1c2a..e8df242 100644
--- a/bottle.py
+++ b/bottle.py
@@ -1565,7 +1565,7 @@ class JSONPlugin(object):
def __init__(self, json_dumps=json_dumps):
self.json_dumps = json_dumps
- def apply(self, callback, context):
+ def apply(self, callback, route):
dumps = self.json_dumps
if not dumps: return callback
def wrapper(*a, **ka):
@@ -1615,7 +1615,7 @@ class HooksPlugin(object):
if ka.pop('reversed', False): hooks = hooks[::-1]
return [hook(*a, **ka) for hook in hooks]
- def apply(self, callback, context):
+ def apply(self, callback, route):
if self._empty(): return callback
def wrapper(*a, **ka):
self.trigger('before_request')