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.

Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
Zope3-users mailing list

Reply via email to