[Grok-dev] Simple adapter question

Kevin Teague kevin at bud.ca
Thu Mar 5 16:47:34 EST 2009

> This looks fishy to me. Unless Grok is doing something very evil, this
> won't work: it'll try to adapt `cave` to IHome, and if that fails, it'll
> fall back to the second argument 'fireplace'.

The evil that Grok is doing is that no one is proof reading my docs :P

I've just fixed that example in svn to correctly use:

home = zope.component.getMultiAdapter((cave, fireplace), IHome)

More information about the Grok-dev mailing list