[Zope] Conflict Errors
Chris McDonough
chrism@zope.com
Thu, 01 Nov 2001 20:14:09 -0500
Richard Jones wrote:
> On Thursday 01 November 2001 17:00, Chris McDonough wrote:
>
> I've been looking into the standard setstate() method of Connection - and I
> have a couple of questions:
>
> 1. where is _invalid defined? I grepped the Zope source, and can't find it
> anywhere. I'm curious as to the meaning of _invalid(None).
Why of course it's the has_key method of the Connection's _invalidated
attribute (see Conenction's __init__ method)! Remember, this is Jim
Fulton code. ;-)
> 2. _p_independent is a very interesting little method. It's only used in one
> place, as far as I can tell (BTrees/Length.py). If it truly did do what it
> says it's supposed to do - state that an object doesn't affect or rely on
> other objects, then you'd be able to tack a _p_independent() returning 1 onto
> your classes that use LowConflictConnection. I think. As it is, it seems that
> it's only checked for the latter statement - that the object doesn't care
> about the state of other objects.
Sorry Richard, I don't understand that question?
> Hrm. I think I'll stop delving into the ZODB. I'm starting to get bad
> feelings.
Creepy, huh?
--
Chris McDonough Zope Corporation
http://www.zope.org http://www.zope.com
"Killing hundreds of birds with thousands of stones"