[Zope] Path expression in Python based script

2006-09-29 Thread Daniel de la Cuesta
Hi, I am beginner working with Zope. I like it but I have some doubts:I have an structure with folders and subfoulders, each folder and subfolder has items.I want to go round this structre with a Python based script, to know the number of elements i do the

Re: [Zope] Path expression in Python based script

2006-09-29 Thread Andreas Jung
--On 29. September 2006 09:00:16 +0200 Daniel de la Cuesta [EMAIL PROTECTED] wrote: Hi, I am beginner working with Zope. I like it but I have some doubts: I have an structure with folders and subfoulders, each folder and subfolder has items. I want to go round this structre with a Python

Re: [Zope] Path expression in Python based script

2006-09-29 Thread eXt
Dnia piątek, 29 września 2006 09:00, Daniel de la Cuesta napisał: Hi, I am beginner working with Zope. I like it but I have some doubts: I have an structure with folders and subfoulders, each folder and subfolder has items. I want to go round this structre with a Python based script, to

Re: [Zope] Path expression in Python based script

2006-09-29 Thread Paul Winkler
On Fri, Sep 29, 2006 at 09:00:16AM +0200, Daniel de la Cuesta wrote: path=animals items=len(context.sections.path.contentValues()) When I try to run the script I get an error saying that the variable path is not present. If i do: items=len(context.sections.animals.contentValues())