[Zope] Another little question

Loren Stafford lstafford@icompression.com
Wed, 10 Nov 1999 14:31:54 -0800


The PARENTS list contains references to all the objects from where you are
(PARENTS[0]) up to the top (PARENTS[-1]).  You could use len(PARENTS) to
find how many levels you are away from the top.

You should print out http://www.zope.org/Members/ZQR, have it bound in
leather, and keep it with you at all times.

-- Loren


> -----Original Message-----
> From: Arjan Scherpenisse [mailto:arjan@node1281e.a2000.nl]On Behalf Of
> Arjan Scherpenisse
> Sent: Wednesday, November 10, 1999 14:02
> To: zope@zope.org
> Subject: [Zope] Another little question
>
>
> Does a variable exist which says in what level of folders i am in?
> This variable should return '0' when i am at the root, and for
> instance 5 when i am at /Company/Factsheet/Proposal/2000/January/
>
> Or is there a method with which i can get this value?
>
> --
> Arjan Scherpenisse,
> A.Scherpenisse@zap.a2000.nl
> ICQ# 27592135
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
>           No cross posts or HTML encoding!
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>