[Zope3-Users] ComponentLookupError
Stephan Richter
srichter at cosmos.phy.tufts.edu
Thu Jun 1 09:56:42 EDT 2006
On Monday 15 May 2006 18:39, Jachin Rupe wrote:
> TypeError: ('Could not adapt', <simple_abook.person.Person object at
> 0x3b3a6f0>, <InterfaceClass simple_abook.interfaces.IPerson>)
>
> I think this is saying that it can't adapt my Person object to the
> IPerson interface.
>
> Am I still missing something?
No, your code looks good. I do not see, why Person cannot adapt IPerson; btw,
if an object implements an interface it is always adaptable to this
interface; it simply returns itself.
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
More information about the Zope3-users
mailing list