Rob Campbell wrote:
Hi Darryl,

That is how I had the IFosterRecord interface before, and I got a lot more errors than just __setitem__. I am only getting the __setitem__ error now, after changing it to something like:

class IFosterRecord(Interface):


  title = TextLine(...)

and the implementation is:

class FosterRecord(BTreeContainer):


  title = FieldProperty(IFosterRecord['title'])

I think the problem is coming from contains().

Yup. contains() adds a __setitem__ method to the interface.

Zope3-users mailing list

Reply via email to