[Zope] RE: Newbie PARENTS question - <Folder instance at 8577
a18>
Alexander Staubo
alex@mop.no
Thu, 30 Sep 1999 02:31:30 +0200
Actually, id is a method on _documents_, but an attribute of most other
objects, including folders, mail hosts, etc. -- but interestingly not
image uploads or the Application object.
I can't find where the document's id() method is defined -- difficult to
do a grep here, "id" pops up everywhere! -- so I can't explain it.
Perhaps Jim can shed some light on this interesting dichotomy.
--
Alexander Staubo http://www.mop.no/~alex/
"`This must be Thursday,' said Arthur to himself, sinking low over
his beer, `I never could get the hang of Thursdays.'"
--Douglas Adams, _The Hitchhiker's Guide to the Galaxy_
> -----Original Message-----
> From: Pavlos Christoforou [mailto:pavlos@gaaros.msrc.sunysb.edu]
> Sent: 30. september 1999 01:47
> To: Phil Harris
> Cc: Chris Cooke-Johnson; zope@zope.org
> Subject: Re: [Zope] RE: Newbie PARENTS question - <Folder instance at
> 8577a18>
>
>
> On Thu, 30 Sep 1999, Phil Harris wrote:
>
> > How about (untested)
> >
> > <dtml-var "PARENTS[1].id">
> >
>
> Probably:
> <dtml-var "PARENTS[1].id()">
>
> as id is a method.
>
> Pavlos
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (Related lists - please, no cross posts or HTML encoding!
>
> To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
>
> For developer-specific issues, zope-dev@zope.org -
> http://www.zope.org/mailman/listinfo/zope-dev )
>