Hi Santi.

The Zope2 official way of extending objects at runtime is acquisition.

The easiest way to make use of it is to put the methods/scripts you need
in the acquisition path (e.g. closer to the root). There are more
sofisticated methods, such as SkinnedFolders  and "TransparentFolders"
that allow you to shape acquisition to avoid cluttering parent folders
with methods and/or a more precise control of the selection of objects
to be aquired.

All of the methods of shapping acquisition rely on creative
interpretation/manipulation of the __of__() method of acquisition-aware

Acquisition is very powerful, and very "magic" at the same time.
Adapters is Zope3 way of implementing "Acquisition" in a less
"surprising" way.

On Mon, 2004-02-09 at 18:48, Santi Camps wrote:
> Hi all,
> I know that adaptors are introduced in zope3 but, anybody knows if this
> technique can be used in zope2 ?
> I've been trying to add some extra functionallity to a Folder object
> without inheriting, but I'm not able to make it work.  To maintain the
> adapted object publishable I've rewrited __getattr__, but then some
> extra problems appears.  
> Anybody knows if there is a way to use adapters in zope2 ?  Or, if not,
> there is some other way to add functionallity on-the-fly, without
> inheriting ?
> Thanks in advance
Ideas don't stay in some minds very long because they don't like
solitary confinement.

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to