web/views/urlpublishing.py
changeset 2657 de974465d381
parent 2650 18aec79ec3a3
child 2664 1578e1a57828
--- a/web/views/urlpublishing.py	Mon Aug 03 14:14:07 2009 +0200
+++ b/web/views/urlpublishing.py	Mon Aug 03 15:16:47 2009 +0200
@@ -194,9 +194,9 @@
     def evaluate_path(self, req, parts):
         # uri <=> req._twreq.path or req._twreq.uri
         uri = req.url_unquote('/' + '/'.join(parts))
-        vobjects = sorted(self.vreg['urlrewriting'].all_objects(),
-                          key=lambda x: x.priority, reverse=True)
-        for rewritercls in vobjects:
+        evaluators = sorted(self.vreg['urlrewriting'].all_objects(),
+                            key=lambda x: x.priority, reverse=True)
+        for rewritercls in evaluators:
             rewriter = rewritercls()
             try:
                 # XXX we might want to chain url rewrites