From 541c1e8b9f0e2e12bd770100888129639cc94827 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 24 Mar 2017 10:15:41 +1300 Subject: addons: start -> load throughout --- examples/simple/add_header_class.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/simple/add_header_class.py') diff --git a/examples/simple/add_header_class.py b/examples/simple/add_header_class.py index 9270be09..7a0dbafa 100644 --- a/examples/simple/add_header_class.py +++ b/examples/simple/add_header_class.py @@ -3,5 +3,5 @@ class AddHeader: flow.response.headers["newheader"] = "foo" -def start(opts): +def load(opts): return AddHeader() -- cgit v1.2.3 From 65f0885bd6809966f694d1ffb965401b8ab2cffc Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 24 Mar 2017 11:29:36 +1300 Subject: addon loader: add boot_into, which replaces returning from start() While we're here, expand test coverage for addonmanager to 100%, and promote to individual coverage. --- examples/simple/add_header_class.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/simple/add_header_class.py') diff --git a/examples/simple/add_header_class.py b/examples/simple/add_header_class.py index 7a0dbafa..69b64163 100644 --- a/examples/simple/add_header_class.py +++ b/examples/simple/add_header_class.py @@ -3,5 +3,5 @@ class AddHeader: flow.response.headers["newheader"] = "foo" -def load(opts): - return AddHeader() +def load(l): + return l.boot_into(AddHeader()) -- cgit v1.2.3