web/views/urlpublishing.py
changeset 2770 356e9d7c356d
parent 2664 1578e1a57828
child 2887 1282dc6525c5
--- a/web/views/urlpublishing.py	Tue Aug 11 12:42:01 2009 +0200
+++ b/web/views/urlpublishing.py	Tue Aug 11 13:01:56 2009 +0200
@@ -217,6 +217,7 @@
             raise PathDontMatch()
         # remove last part and see if this is something like an actions
         # if so, call
+        # XXX bad smell: refactor to simpler code
         try:
             actionsreg = self.vreg['actions']
             requested = parts.pop(-1)
@@ -232,7 +233,7 @@
                 continue
             else:
                 try:
-                    action = actionsreg.select_best(actions, req, rset=rset)
+                    action = actionsreg._select_best(actions, req, rset=rset)
                 except RegistryException:
                     continue
                 else: