Re: [Zope3-dev] wildcard adapter

2007-01-19 Thread Chris Withers
Marius Gedminas wrote: There's a slight difference, I think. In the Zope 3 world, there's usually one style that is considered to be the best way of doing stuff. Only it varies with time and with individual Zope 3 developers. ;-) I do wish it would stop varying... If you pass the

Re: [Zope3-dev] wildcard adapter

2007-01-18 Thread Chris Withers
Marius Gedminas wrote: BTW passing interfaces to provideAdapter/adapts is out of fashion. This stuff is getting almost perl-ish in it's there's many ways to do it, pick the style you like nature.. I prefer using zope.component.adapts and zope.interface.implements (or zope.component.adapter

Re: [Zope3-dev] wildcard adapter

2007-01-18 Thread Marius Gedminas
On Thu, Jan 18, 2007 at 08:55:17AM +, Chris Withers wrote: Marius Gedminas wrote: BTW passing interfaces to provideAdapter/adapts is out of fashion. This stuff is getting almost perl-ish in it's there's many ways to do it, pick the style you like nature.. There's a slight difference,

[Zope3-dev] wildcard adapter

2007-01-17 Thread Chris Withers
Hi All, I was wondering if someone could give me a definitive explanation of what the following means: adapter for=* ISomething * ... ...means? Is the following equivalent: provideAdapter(...,adapts=(None,ISomething,None),...) ? If it is, then which of the following should I use

Re: [Zope3-dev] wildcard adapter

2007-01-17 Thread Martin Aspeli
Chris Withers wrote: Hi All, I was wondering if someone could give me a definitive explanation of what the following means: adapter for=* ISomething * ... ...means? Is the following equivalent: provideAdapter(...,adapts=(None,ISomething,None),...) No, but this

Re: [Zope3-dev] wildcard adapter

2007-01-17 Thread Marius Gedminas
On Wed, Jan 17, 2007 at 06:37:52AM -0800, Martin Aspeli wrote: Chris Withers wrote: I was wondering if someone could give me a definitive explanation of what the following means: adapter for=* ISomething * ... ...means? Is the following equivalent: