web/views/urlpublishing.py
changeset 2058 7ef12c03447c
parent 1977 606923dff11b
child 2293 7ded2a1416e4
equal deleted inserted replaced
2057:0a0cbccafcb5 2058:7ef12c03447c
   237                 pmid, rset = evaluator.evaluate_path(req, parts[:])
   237                 pmid, rset = evaluator.evaluate_path(req, parts[:])
   238             except PathDontMatch:
   238             except PathDontMatch:
   239                 continue
   239                 continue
   240             else:
   240             else:
   241                 try:
   241                 try:
   242                     action = self.vreg.select(actions, req, rset)
   242                     action = self.vreg.select_best(actions, req, rset=rset)
   243                 except RegistryException:
   243                 except RegistryException:
   244                     raise PathDontMatch()
   244                     raise PathDontMatch()
   245                 else:
   245                 else:
   246                     # XXX avoid redirect
   246                     # XXX avoid redirect
   247                     raise Redirect(action.url())
   247                     raise Redirect(action.url())