File tree 3 files changed +5
-2
lines changed
3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ def path_processor(handler):
258
258
# that causes infinite redicts when web.ctx.path startswith "//"
259
259
raise web .seeother (web .ctx .home + npath + web .ctx .query )
260
260
else :
261
- raise app .notfound
261
+ raise app .notfound ()
262
262
else :
263
263
return handler ()
264
264
Original file line number Diff line number Diff line change @@ -45,6 +45,9 @@ def fakeload():
45
45
context .user = None
46
46
web .ctx .site = create_site ()
47
47
48
+ # Load features
49
+ features .loadhook ()
50
+
48
51
49
52
def initialize_context ():
50
53
web .ctx .site = create_site ()
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ def loadhook():
52
52
53
53
def is_enabled (flag ):
54
54
"""Tests whether the given feature flag is enabled for this request."""
55
- return flag in web . ctx .features
55
+ return flag in context .features
56
56
57
57
58
58
def filter_disabled ():
You can’t perform that action at this time.
0 commit comments