Hi all,

For a breadcrumbs generator (jinja2 filter) I wrote, based on request.path, 
I need to introspect the app.

Example (simplified):

request.path = /blog/articles/view/12345

to_be_checked = request.path.split(/).pop()

Then for each of the subpaths:

/blog/articles/view
/blog/articles
/blog

Return True, if there's a view callable behind this URL ( allowing GET 
method without arguments ), otherwise False

So that I could make the subpaths in the breadcrumbs clickable to show that 
there's something there.

Any idea which would not call any of the subpaths and generate useless code 
execution?

Thanks

-- 
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