view config "path_info" predicate

14 views
Skip to first unread message

Fabien Castarède

unread,
Oct 23, 2012, 9:31:52 AM10/23/12
to pylons...@googlegroups.com
Hello,

I use traversal, and I'm trying to use the "path_info" predicate of view config with a regex pattern without success.
My resources tree url structure is "/presentation/test/123".
When path_info='presentation' the predicate returns True wherever I am in the structure. So far it's logical.
Idem for path_info='/presentation/'.
But for path_info='^/presentation/$' the predicate returns always False... wherever I am in the structure.
My goal is to call the view just when the PATH_INFO='/presentation/', not for the other contained resources.

Any idea ? Is the syntax good ?

Thanks,

Fab.
Reply all
Reply to author
Forward
0 new messages