[Zope-CMF] referring to particular folders or portals
Thu, 27 Feb 2003 13:05:58 +0000
Fearless Froggie wrote:
> I know I can use "context.objectValues(object_type)"
> to find all objects of "object_type" in my current
> context, or "container.objectValues(object_type)" to
> find all objects of "object_type" in the container the
> script is running in.
You should be using contentValues() if you're dealing with a CMF site...
> I was wondering if it would be possible to find all
> objects of "object_type" in a particular folder or
> portal. For example, could I use
> "portal_name.objectValues(object_type)" to find all
> objects of "object_type" in "portal_name".
What is portal_name in this example?