[Zope] Re: Zope Persistence (was: XML-RPC within ZOPE)

Martijn Pieters mj at zopatista.com
Sun Dec 18 15:37:00 EST 2005


On 12/18/05, Jan-Ole Esleben <esleben at gmail.com> wrote:
> > I strongly doubt it. Zope does not "inspect code". There must be a
> > problem in your testing. Note that if self.a is a standard list, the
> > self.a.append(1) doesn't have any impact on the persistence mechanism or
> > transactions either.
>
> Please, try it out. Delete the if clause and the append in it.

No, Zope does not do any code analysis. Code gets executed or not, and
that's it. If you observe behaviour you can only explain by assuming
un-executed code to have side-effects, you will have to re-examine
your assumptions. Get a good debugger instead.

--
Martijn Pieters


More information about the Zope mailing list