ZPT and standard_error_message
I can override standard_error_message with a custom ZPT file; however, I don't seem to have access to the error data. What am I missing? Surely there must be a way to do this. Zope 2.7/linux2 Python 2.3.2 CMF 1.4.4 Thanks, David -- David Chandek-Stark Web Applications Developer Duke University - Perkins Library (919) 660-5859 dc@duke.edu
David Chandek-Stark wrote at 2004-5-28 09:33 -0400:
I can override standard_error_message with a custom ZPT file; however, I don't seem to have access to the error data. What am I missing? Surely there must be a way to do this.
They come via "options" (read the Zope Book (2.6 edition, online); PageTemplate section). -- Dieter
Dieter, Thanks for the reply. options/error_type and options/error_value do work. However, this is not documented in the book that I could find. David Dieter Maurer wrote:
David Chandek-Stark wrote at 2004-5-28 09:33 -0400:
I can override standard_error_message with a custom ZPT file; however, I don't seem to have access to the error data. What am I missing? Surely there must be a way to do this.
They come via "options" (read the Zope Book (2.6 edition, online); PageTemplate section).
-- David Chandek-Stark dc@duke.edu
David Chandek-Stark wrote at 2004-5-29 13:33 -0400:
Thanks for the reply. options/error_type and options/error_value do work. However, this is not documented in the book that I could find.
It probably is not documented explicitely because this is a standard feature: all arguments to a ZPT are available via "options". And this is documented... -- Dieter
participants (2)
-
David Chandek-Stark -
Dieter Maurer