[Zope-dev] DTML Documents/Folders in ZClasses fail to access anything

Steve Alexander steve@cat-box.net
Wed, 21 Feb 2001 19:59:24 +0000


Itai Tavor wrote:

> Hi,
> 
> I got a ZClass 'Test', with a DTML Method 'view' containing <dtml-var 
> id>, and a DTML Document 'view2' with the same line. instance/view 
> works. instance/view2 returns (ZDebug output):

>From SimpleItem.py:

"""Direct use of the 'id' attribute is deprecated - use getId()"""

The difference you're seeing is because the DTML Method is acquiring the
id attribute, whereas you're getting the DTML Document's own id
attribute.

--
Steve Akexander
Software Engineer
Cat-Box limited
http://www.cat-box.net