view config "path_info" predicate

31 views
Skip to first unread message

FFFFFFFab

unread,
Oct 23, 2012, 11:26:36 AM10/23/12
to pylons-...@googlegroups.com
Hello,

I'm trying to use the "path_info" predicate with a regular expression but without success.
My app uses traversal and a part of his resources tree structure is "/presentation/test/123/".
My goal is to call a specific view only when I request the path "/presentation/". Then, I set "path_info" predicate for my view with the regular expression pattern "^/presentation/$", unfortunately it doesn't work.
When I use "/presentation/" regex pattern, the view is called wherever I am in "/presentation/test/123/". Obviously.
So, the "path_info" predicate's code seems to run well, but I cannot use pattern with regex symbol (^, $, \d+, etc...).
Is the syntax I used good, I missed something ? My pyramid version is the 1.3.3.

Thanks for your help,

Fab.
Reply all
Reply to author
Forward
0 new messages