[Zope-dev] The refresh "bug".

2004-02-10 Thread Lennart Regebro
From: "Dieter Maurer" <[EMAIL PROTECTED]> > Lennart Regebro wrote at 2004-2-9 11:04 +0100: > >From: "Dieter Maurer" <[EMAIL PROTECTED]> > >> ... objects turned into None ... > > > >Also, loads of objects can become None when you do a refresh, because of > >some strange bug in the refresh support th

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

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 auto

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 a

[Zope-dev] Re: Adapters in Zope 2

2004-02-10 Thread Michael Haubenwallner
Casey Duncan wrote: Zope2 folders are designed for this. They are really just "blank objects" where you can specify your own methods in instance space. Traditionally in Zope2, there are two ways to do this: by adding "method" objects (External Methods, DTML methods, python scripts, ZPT) directly to

Re: [Zope-dev] Re: Adapters in Zope 2

2004-02-10 Thread Casey Duncan
On Tue, 10 Feb 2004 15:26:00 +0100 Michael Haubenwallner <[EMAIL PROTECTED]> wrote: > Casey Duncan wrote: > > Zope2 folders are designed for this. They are really just "blank > > objects" where you can specify your own methods in instance space. > > Traditionally in Zope2, there are two ways to do

Re: [Zope-dev] Re: Adapters in Zope 2

2004-02-10 Thread Santi Camps
> > Casey Duncan wrote: > > > Zope2 folders are designed for this. They are really just "blank > > > objects" where you can specify your own methods in instance space. > > > Traditionally in Zope2, there are two ways to do this: by adding > > > "method" objects (External Methods, DTML methods, pyth

[Zope-dev] Re: Adapters in Zope 2

2004-02-10 Thread Tres Seaver
Santi Camps wrote: Casey Duncan wrote: Zope2 folders are designed for this. They are really just "blank objects" where you can specify your own methods in instance space. Traditionally in Zope2, there are two ways to do this: by adding "method" objects (External Methods, DTML methods, python scrip

Re: [Zope-dev] Re: Adapters in Zope 2

2004-02-10 Thread Casey Duncan
On Tue, 10 Feb 2004 17:34:39 +0100 Santi Camps <[EMAIL PROTECTED]> wrote: [..] > Very interesting. That's what I was looking for. I will try to > extract this mechanism from CMF. See: http://www.plope.com/Members/chrism/standalone_skins 8^) -Casey _

Re: [Zope-dev] The refresh "bug".

2004-02-10 Thread Dieter Maurer
Lennart Regebro wrote at 2004-2-10 11:08 +0100: > ... refresh turns objects to None ... >Yes, but these objects are recreated when the module is reloaded. And if the >module who import stuff from this module in turn is reloaded, it's imports >to stuff in that module will be refreshed to point to th