[Zope3-checkins]
SVN: Zope3/trunk/src/zope/pagetemplate/interfaces.py
Add pt_errors() and pt_warnings() to IPageTemplate.
Fred L. Drake, Jr.
fred at zope.com
Wed Jul 7 16:17:59 EDT 2004
Log message for revision 26185:
Add pt_errors() and pt_warnings() to IPageTemplate.
-=-
Modified: Zope3/trunk/src/zope/pagetemplate/interfaces.py
===================================================================
--- Zope3/trunk/src/zope/pagetemplate/interfaces.py 2004-07-07 20:09:11 UTC (rev 26184)
+++ Zope3/trunk/src/zope/pagetemplate/interfaces.py 2004-07-07 20:17:59 UTC (rev 26185)
@@ -35,6 +35,26 @@
"""Set the source and content type
"""
+ def pt_errors(namespace):
+ """Return a sequence of strings that describe errors in the template.
+
+ The errors may occur when the template is compiled or
+ rendered.
+
+ `namespace` is the set of names passed to the TALES expression
+ evaluator, similar to what's returned by pt_getContext().
+
+ This can be used to let a template author know what went wrong
+ when an attempt was made to render the template.
+ """
+
+ def pt_warnings():
+ """Return a sequence of warnings from the parser.
+
+ This can be useful to present to the template author to
+ indication forward compatibility problems with the template.
+ """
+
def read():
"""Get the template source
"""
More information about the Zope3-Checkins
mailing list