[Zope3-Users] Conflicting configuration actions for protectName
rcampbell at pcwi.net
Wed Sep 20 16:26:14 EDT 2006
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:
title = TextLine(...)
and the implementation is:
title = FieldProperty(IFosterRecord['title'])
I think the problem is coming from contains(). Do I need to create
another interface just for the contains()? Maybe something like
IFosterSourceContainer. Or is there another way to fix this error?
Thank you for the reply.
Darryl Cousins wrote:
> Hi Rob,
> __setitem__ is likely also part of your IFosterRecord interface.
> class IFosterRecord(IContainer) #?
> and this is causing the conflict.
> On Tue, 2006-09-19 at 15:35 -0700, Rob Campbell wrote:
>> I know I read about this error somewhere before, but I haven't been able
>> to find anything through Google searches. I have a container that also
>> has it's own attributes. I am calling
>> zope.app.container.constraints.contains from IFosterRecord, is that what
>> is causing the __setitem__ problem?
>> Here is the traceback I have been getting:
>> zope.configuration.config.ConfigurationConflictError: Conflicting
>> For: ('protectName', <class 'rats.foster.FosterRecord'>, '__setitem__')
>> File "/opt/zope/instance/lib/python/rats/configure.zcml", line
>> <class class='.foster.FosterRecord'>
> Zope3-users mailing list
> Zope3-users at zope.org
More information about the Zope3-users