Re: [Zope-dev] Adapters in Zope 2

2004-02-12 Thread Martijn Faassen
Leonardo Rochael Almeida wrote: Acquisition is very powerful, and very magic at the same time. Adapters is Zope3 way of implementing Acquisition in a less surprising way. The main drawback of acquisition, which is a drawback in general of Zope 2, is that namespaces get conflated. Zope 2 is

Re: [Zope-dev] Adapters in Zope 2

2004-02-10 Thread santi
I've been trying to add some extra functionallity to a Folder object without inheriting, but I'm not able to make it work. First question is Why?. Unless you want to change the fucntionality of *all* folder objects inheriting is the way to go. For instance, If I've a repository of Folders

Re: [Zope-dev] Adapters in Zope 2

2004-02-10 Thread Casey Duncan
On Mon, 09 Feb 2004 21:48:29 +0100 Santi Camps [EMAIL PROTECTED] wrote: Hi all, I know that adaptors are introduced in zope3 but, anybody knows if this technique can be used in zope2 ? Adapters are a general pattern. Zope 3 has infrastructure (component architecture and ZCML) that automates

Re: [Zope-dev] Adapters in Zope 2

2004-02-10 Thread Leonardo Rochael Almeida
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

[Zope-dev] Adapters in Zope 2

2004-02-09 Thread Santi Camps
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