diff options
author | Frederic Junod <frederic.junod@camptocamp.com> | 2012-09-24 14:25:42 +0200 |
---|---|---|
committer | Frederic Junod <frederic.junod@camptocamp.com> | 2012-09-24 14:25:42 +0200 |
commit | 7c45f076c1dab4e582581530085824a801970b06 (patch) | |
tree | 64e618e860277c645ff4ba2d589e2f0bc387f1c8 | |
parent | c97c84a47826488a21d2f6fbf8716df914b0fa69 (diff) | |
download | bottle-7c45f076c1dab4e582581530085824a801970b06.tar.gz |
plugin.apply: rename context to route
-rw-r--r-- | bottle.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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') |