Commits

Anonymous committed ef363e4

Multiview handling: now takes into account request's context.
Don't really know what it implies but it works ;)

Comments (0)

Files changed (1)

pyramid_perfstat/perf_serializer.py

                     (IViewClassifier, request_iface, Interface),
                     IView, name='', default=None)
                 if IMultiView.providedBy(view_callable):
-                    view_callable = view_callable.match(None, request) # TODO MultiView.match() expects a context as a first arg. I guess it would be preferrable to provide this information instead of None.
+                    view_callable = view_callable.match(request.context, request)
 
             self.view_name = ".".join((view_callable.__module__,view_callable.__name__))