[z3-five] Re: Five fails on my 2.8 instance

Philipp von Weitershausen philipp at weitershausen.de
Tue Nov 16 16:16:02 MET 2004


Tim Hicks wrote:
> I made it work by hiding the problem rather than fixing it (I suppose). 
> My Five.interfaces module now looks like::
> 
>   try:
>       from persistent.interfaces import IPersistent
>       if not isinstance(IPersistent, Interface):
>           raise ImportError

'Interface' is not a class, it's a special interface object. You want to 
test whether IPersistent is an instance of 
zope.interface.interface.InterfaceClass.

Philipp


More information about the z3-five mailing list