[Zope3-dev] Re: Container interface issues
Martijn Faassen
faassen at vet.uu.nl
Wed Sep 17 06:11:35 EDT 2003
Garrett Smith wrote:
> Jim Fulton wrote:
> >Garrett Smith wrote:
> >>I personally would not be comfortable with zapi.add because of its
> >>opacity.
> >
> >It's not opaque, as it is effectively a macro for:
> > zapi.getAdapter(container, IAddTarget).addObject(name, object)
>
> Ah, I officially retract all of my previous griping ;-)
Hm, it makes me wish there were a shorter way to spell this
in the first place.
IAddTarget(container).addObject(name, object)
An import less too (no zapi necessary, and you need IAddTarget anyway).
Regards,
Martijn
More information about the Zope3-dev
mailing list