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_name = request.matched_route.name
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?

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to