i would like to make a view, which lists objects in specific folder (say root/Members/myname).
How to do this? I dont know how to reffer to folder. Something like:
items = []
folder = getFolder('/Members/' + myname)
for i in folder:
if isinstance(news, i):
items.append(i.title)
Hm?
You can ask the catalog to list the contents of a given folder, by using the path index, with a depth limit:
See quering the catalog for more information.
Alternatively, you could traverse to the folder in question and call the
getFolderContentsskin method on that:The latter does the catalog search for you.