[Zope] "Bubbling up" to parent error message?

Joel Burton jburton@scw.org
Tue, 27 Feb 2001 23:01:10 -0500 (EST)


> On Tue, 27 Feb 2001, Joel Burton wrote:
> 
> > <dtml-else>
> >     <dtml-var "PARENTS[2].standard_error_message()">
> > </dtml-if>
> >
> >
> > The URLPATH2='' checks that you are looking in /home/xxx. If you're
> > looking for /home/joel/xxx, URLPATH2 != '', and you get the else
> > clause.
> >
> > The PARENTS[2] bit is trying to say "show the
> > standard_error_message that's up the acquisition chain from this
> > one", but failing miserably.
> >
> > PARENTS[2].standard_error_message w/o () gives me the *source*
> > of the error message, w/ () doesn't work, and gives me the hard-
> > coded-in-sourcecode error message, not the one in my root
> > directory.
> 
> Try:
> 
>  <dtml-else>
>     <dtml-with "PARENTS[2]">
>       <dtml-var standard_error_message>
>     </dtml-with>
>  </dtml-if>

This works great. Thanks.

-- 
Joel Burton   <jburton@scw.org>
Director of Information Systems, Support Center of Washington