From 8cfc351c00504dfd7f4dc34952fc5ac239cd06bf Mon Sep 17 00:00:00 2001 From: richard Date: Tue, 10 Sep 2002 12:43:18 +0000 Subject: [PATCH] better traversal error info git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1122 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/cgi/PageTemplates/Expressions.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.30.2