Code

better traversal error info
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 10 Sep 2002 12:43:18 +0000 (12:43 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 10 Sep 2002 12:43:18 +0000 (12:43 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1122 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/cgi/PageTemplates/Expressions.py

index 2120a736e13e82ac676d5d75beb1cb05bc67b9c9..1d253bd82a04fa5c5319d149d7b2124333433b9e 100644 (file)
@@ -25,7 +25,7 @@ Modified for Roundup 0.5 release:
 
 """
 
-__version__='$Revision: 1.4 $'[11:-2]
+__version__='$Revision: 1.5 $'[11:-2]
 
 import re, sys
 from TALES import Engine, CompilerError, _valid_name, NAME_RE, \
@@ -279,9 +279,10 @@ def restrictedTraverse(self, path, securityManager,
     path.reverse()
     object = self
     #print 'TRAVERSE', (object, path)
+    done = []
     while path:
+        __traceback_info__ = 'Traversed %r\n ... looking for %r'%(done, path)
         name = path.pop()
-        __traceback_info__ = 'looking for "%s"'%name
 
         if isinstance(name, TupleType):
             object = apply(object, name)
@@ -319,6 +320,7 @@ def restrictedTraverse(self, path, securityManager,
                 raise
         #print '... object is now', `o`
         object = o
+        done.append(o)
 
     return object