[Zope-CMF] Adding acquisition containers to a CMF object.

Dieter Maurer dieter@handshake.de
Sat, 30 Jun 2001 11:21:14 +0200 (CEST)


Kent Polk writes:
 > Dieter Maurer wrote:
 > >   *  You can use a SiteAccess AccessRule to put it into the
 > >      URL for traversal purposes only.
 > > 
 > >   *  You can look how "TransparentFolder" does its magic
 > >      (it manipulates the acquisition context in a way, that
 > >      its content appears to be the content of the containing
 > >      folder).
 > 
 > I've looked extensively at both of these. SiteAccess does somewhat
 > the opposite of what I want.
Maybe, you need to describe in more detail what you want.

   With SiteAccess (and/or the underlying framework) it is
   possible to selectively add additional folders in the acquisition
   chain.

 > ....
 > (Any more suggestions? :^)
A further alternativ is to use a Python Script that binds
the "traversal_subpath". Inside the script, you all
add acquisition contexts as needed (if you need precise control,
you would need an additional External Method or external Python
function), and then use "restrictedTraverse" to reach the final
destination. You would loose "ZPublisher"'s "mapply" magic,
however.


Dieter