[Zope-Coders] RE: [ZC] 370/ 2 Reject "Remove validation of <dtml-comment> to improve documenting methods"
Trevor Toenjes
zope@toenjes.com
Mon, 29 Apr 2002 14:19:40 -0400
> This is a known, and understood, limitation with dtml-comment,
> not a defect.
Hence, why I didnt file as a bug.
So where is the python that parses DTML-Comment to not render?
This could be used to insert in the validation code. right?
-Trevor
> Contributors wishing to propose new code features are encouraged
> to participate with the Zope 2.6 community contribution process.
> ________________________________________
> = Request - Entry #1 by Anonymous User on Apr 29, 2002 1:49 pm
>
> To my surprise, Zope tries to validate commented out code in the
> the <dtml-comment> block.
> Therefore, one *cannot* write an example as:
> When called from <dtml-in Catalog>, this method renders...
>
> Zope looks for a </dtml-in>, even though this is in the
> dtml-comment block. This defeats the purpose of properly
> documenting DTML with DTML snippets to explain logic in methods, etc.
>
> Zope does not execute anything in dtml-comment.
> Therefore, it should not validate anything in dtml-comment.
> ==============================================================
>
>