[Zope-CMF] Re: Recipe for ReadConflictError hell
Florent Guillaume
fg at nuxeo.com
Thu Jan 13 13:22:06 EST 2005
Chris Withers <chris at simplistix.co.uk> wrote:
> Dieter Maurer wrote:
> > I found out that the "_v_eek" attribute
> > (from "OFS.SimpleItem.SimpleItem.raise_standardErrorMessage")
> > were written through the surrogate into the underlying
> > "FSDirectoryView" object: The "__setattr__" of
> > "DirectoryViewSurrogate" writes to both the surrogate
> > and the "FSDirectoryView" itself. This caused very
> > strange error handling behaviour for us (fixed
> > by defining a "__delattr__" along the same line as "__setattr__").
> >
> > This behaviour of surrogates means that one must use "_v_" variables
> > to avoid ZODB writes even though the surrogates themselves are not persistent.
>
> Hmm, okay, but _v_eek is a _v_ attribute, so what's the problem here?
> Regardless, has this been submitted as a bug anywhere?
I just did because I want to look at this.
http://zope.org/Collectors/CMF/316
Florent
--
Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D
+33 1 40 33 71 59 http://nuxeo.com fg at nuxeo.com
More information about the Zope-CMF
mailing list