[ZPT] Use-cases for strictinsert=True?
Fred Drake
fdrake at gmail.com
Tue Sep 20 09:29:20 EDT 2005
Thomas Lotze reported that using the TAL interpreter from Zope 3 with
strictinsert=True (the default when using it directly) fails
miserably. It's entirely possible that this has been a problem for
some time due to the nature of the failure.
When strictinsert is true, the TAL interpreter attempts to parse the
text in structure insertions (tal:content="structure ..." and
tal:replace="structure ...") and further interpret any markup found
there. Some time ago we determined that this behavior didn't make any
sense, but the code didn't need to change because the application
could just pass strictinsert=False.
Zope Page Templates always use strictinsert=False.
Does anyone have a use case for strictinsert=True? If not, I'd like
to remove this easily-encountered wart from the code completely, or at
the very least, change the default. The former is certainly
preferable if no one is using strictinsert=True.
-Fred
--
Fred L. Drake, Jr. <fdrake at gmail.com>
Zope Corporation
More information about the ZPT
mailing list