Get view from introspector

12 views
Skip to first unread message

John Anderson

unread,
Apr 15, 2013, 12:49:13 PM4/15/13
to pylons-...@googlegroups.com
Hey, I was wondering if there is a good way to get the current view from the introspector?

I've got the route introspectable doing:

introspector = request.registry.introspector
route_intr = introspector.get('routes', route_name)

and can see its related stuff with:

introspector.related(route_intr)

but I want to be able to just grab the view that was matched with the route.  Should I just loop over related and check the category?

Reply all
Reply to author
Forward
0 new messages