1. tuck
  2. pyramid_perfstat


Florent Angebault  committed ef363e4

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

  • Participants
  • Parent commits f544c19
  • Branches 0.2

Comments (0)

Files changed (1)

File pyramid_perfstat/perf_serializer.py

View file
  • Ignore whitespace
                     (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__))