[Zope-CMF] CMF-in-CMF searches

Florent Guillaume fg@nuxeo.com
Sat, 20 Jul 2002 15:33:38 +0000 (UTC)


Tres Seaver  <tseaver@zope.com> wrote:
> "Nested portals" aren't directly supported, but can be emulated using
> two complementary strategies:
> 
>   - Create only one CMF site, and force its tools to allow replacement
>     (e.g, change their '__replaceable__' from OFS.ObjectManager.UNIQUE
>     to REPLACEABLE.  Then add these tools to the PortalFolders
>     representing the "sub-sites".
> 
>   - Create a top-level folder and instantiate the "shared" tools there;
>     create a CMFSite in that folder per "sub-site", and delete the tools
>     which you want to share from the acquired folder.

Is this gonna work though ? Practically all the tools use the idiom
aq_parent(aq_inner(self)) to get to the portal object. Depending on
the context, this may or may not give the correct result...

Actually with several nested portals, "the" portal object is not well
defined anymore, so it's as good a choice as any...

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com