[Zope] CASE in point -- [Zope] Simple dtml-unless problem

albert boulanger aboulang@ldeo.columbia.edu
Wed, 13 Sep 2000 08:45:00 -0400 (EDT)


   On Wed, 13 Sep 2000, Tim Hicks wrote:
   > <dtml-unless "id == 'index_html'">

      Sometimes id is string, sometimes it is a function.

   <dtml-unless "_['id'] == 'index_html'">

This is a great example of DTML as a language having a multiple
personality disorder. This violates a principle of consistent
syntax/semantics. It wants to fool you that you could in fact do
<dtml-unless "id == 'index_html'"> but no. I understand why DTML was
designed this way, but in attempting to be a very convenient language
in syntactic simplicity, it did not do it to completion and there are
these traps that many of us learn over long weekends. Early adopters
will go through this, but it is a "crossing the chasm" item to be
addressed. 

Regards,
Albert Boulanger
aboulanger@vpatch.com