Re: [Zope] Starting a search from the correct folder

2005-07-03 Thread Dieter Maurer
Nikko Wolf wrote at 2005-7-1 15:40 -0600: Dieter Maurer wrote: You are aware that you will not get a list (but a tree) when you look down from some starting point? ... But Dieter, can you elaborate on what you mean? Isn't the result from objectValues() a tuple [which would be a list in

Re: [Zope] Starting a search from the correct folder

2005-07-03 Thread Dieter Maurer
John Poltorak wrote at 2005-7-2 15:52 +0100: On Fri, Jul 01, 2005 at 08:15:20PM +0200, Dieter Maurer wrote: John Poltorak wrote at 2005-6-30 22:27 +0100: ... If I want to generate a list of folders in say the 'groups' folder, how would I change the code above? You are aware that you will

Re: [Zope] Starting a search from the correct folder

2005-07-02 Thread Andreas Jung
--On 2. Juli 2005 15:52:52 +0100 John Poltorak [EMAIL PROTECTED] wrote: When you are ready to look up (in the hierarchy), then obj.aq_inner.aq_parent is the hierarchy parent of obj. Well that would be useful if I understood what you meant. Is there a suggested explanation anywhere

Re: [Zope] Starting a search from the correct folder

2005-07-02 Thread John Poltorak
On Sat, Jul 02, 2005 at 05:03:06PM +0200, Andreas Jung wrote: --On 2. Juli 2005 15:52:52 +0100 John Poltorak [EMAIL PROTECTED] wrote: When you are ready to look up (in the hierarchy), then obj.aq_inner.aq_parent is the hierarchy parent of obj. Well that would be

Re: [Zope] Starting a search from the correct folder

2005-07-01 Thread Dieter Maurer
John Poltorak wrote at 2005-6-30 22:27 +0100: ... If I want to generate a list of folders in say the 'groups' folder, how would I change the code above? You are aware that you will not get a list (but a tree) when you look down from some starting point? When you are ready to look up (in the

Re: [Zope] Starting a search from the correct folder

2005-07-01 Thread Nikko Wolf
Dieter Maurer wrote: You are aware that you will not get a list (but a tree) when you look down from some starting point? I suspect he meant a list in the HTML - he is using ul and li tags there. But Dieter, can you elaborate on what you mean? Isn't the result from objectValues() a

Re: [Zope] Starting a search from the correct folder

2005-07-01 Thread Nikko Wolf
Andreas Jung wrote: --On 30. Juni 2005 22:27:37 +0100 John Poltorak [EMAIL PROTECTED] wrote: I have some code which here:- ul tal:condition=python: context.objectValues(['Folder']) li tal:repeat=item python: context.objectValues(['Folder']) a href=ABSOLUTE_URL

[Zope] Starting a search from the correct folder

2005-06-30 Thread John Poltorak
I have some code which here:- divtal:loop tal:repeat=item python: request.PARENTS[-2::-1]gt; a href=ABSOLUTE_URL tal:attributes=href item/absolute_url tal:content=item/title_or_idPARENT TITLE OR ID/a /tal:loop/div ul tal:condition=python:

Re: [Zope] Starting a search from the correct folder

2005-06-30 Thread Andreas Jung
--On 30. Juni 2005 22:27:37 +0100 John Poltorak [EMAIL PROTECTED] wrote: I have some code which here:- divtal:loop tal:repeat=item python: request.PARENTS[-2::-1]gt; a href=ABSOLUTE_URL tal:attributes=href item/absolute_url tal:content=item/title_or_idPARENT TITLE OR