web/views/urlpublishing.py
changeset 7272 771f594c12a2
parent 6961 686c59dfc401
child 7794 aed065b97f12
equal deleted inserted replaced
7271:2bd70418b601 7272:771f594c12a2
   258             except PathDontMatch:
   258             except PathDontMatch:
   259                 continue
   259                 continue
   260             else:
   260             else:
   261                 try:
   261                 try:
   262                     action = actionsreg._select_best(actions, req, rset=rset)
   262                     action = actionsreg._select_best(actions, req, rset=rset)
       
   263                     if action is not None:
       
   264                         raise Redirect(action.url())
   263                 except RegistryException:
   265                 except RegistryException:
   264                     continue
   266                     pass # continue searching
   265                 else:
       
   266                     # XXX avoid redirect
       
   267                     raise Redirect(action.url())
       
   268         raise PathDontMatch()
   267         raise PathDontMatch()