From: richard Date: Tue, 10 Sep 2002 12:43:18 +0000 (+0000) Subject: better traversal error info X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8cfc351c00504dfd7f4dc34952fc5ac239cd06bf;p=roundup.git better traversal error info git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1122 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/cgi/PageTemplates/Expressions.py b/roundup/cgi/PageTemplates/Expressions.py index 2120a73..1d253bd 100644 --- a/roundup/cgi/PageTemplates/Expressions.py +++ b/roundup/cgi/PageTemplates/Expressions.py @@ -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