[Zope] tree doesn't work 4me linux amd win32
Michel Pelletier
michel@digicool.com
Tue, 9 Mar 1999 12:29:26 -0500
> -----Original Message-----
> From: Andy Heath [mailto:A.K.Heath@shu.ac.uk]
> Sent: Tuesday, March 09, 1999 12:06 PM
> To: zope@zope.org
> Subject: [Zope] tree doesn't work 4me linux amd win32
>
>
> I'm a zope newbie.
>
> I just installed on a windows 95 box and on a linux 2.0.something
> but I can't get anything with tree working (other stuff seems ok).
>
> Hadars' second sample app doesn't work for me (the tree part
> produces no output).
>
> Even the minimal
>
> <!--#tree-->
> <!--#/tree-->
>
> doesn't produce output (tried this with the second Habar example after
> creating the "sub-folders").
>
> I get the same behaviour on windows as linux.
>
> I must be doing something wrong. Clues please ?
>
I bet your using a DTML Document. Try using a DTML Method. The reason
why the tree tag renders nothing for the DTML Document is because DTML
Documents are not containers of other objects, they are objects to hold
DTML content. DTML Methods are (and this is the suble thing) *methods*
of the Folder object that contains them. They are not 'objects' in the
same sense of the term used for DTML Documents (I can hear Jim saying
now "*everything's* an object"). Because Folder objects *are*
containers, the #tree tag used in a Folder's DTML Method will render the
contents of that Folder. Hadar's example is a little outdated, it is
based on 1.9, in which DTML Documents didn't exist, and all Documents
were DTML methods.
-Michel
> Andy
> btw: Zope looks really good to me (when I can get over these
> glitches).
>
> ---------------------------
> Andy Heath, Senior Lecturer a.k.heath@shu.ac.uk o
> Sheffield Hallam University. Phone: +44 114 2534904 /\
> Sheffield, England Fax: +44 114 2533161 () ()
>
>
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (For developer-specific issues, use the companion list,
> zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
>