[Zope] Boolean dtml redux

Casey Duncan cduncan@kaivo.com
Tue, 03 Jul 2001 15:38:18 -0600


Leigh Ann Hildebrand wrote:
> 
[snip]
> 
> Well, err, actually, for reasons I'm not entirely sure I could explain,
> those methods don't work in this case. I worked with a number of the
> fine gentlemen on #zope about the problem, and we discovered together
> that nothing short of the full _['id'] would work.
> 
> Leigh Ann
> 

That is because id is sometimes a method and sometimes just a value.
_['id'] will call a method and return it or just return a value, that is
why it worked.

All objects now support a getId() method, that returns the id of an
object. That dispenses with the _[] notation.

-- 
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>