[ZODB-Dev] Getting an up to date instance of a persistent object
Pascal Peregrina
Pperegrina at Lastminute.com
Fri Jun 2 10:02:07 EDT 2006
Now it all makes sense :)
I was right in my initial assumptions then (but probably unclear when exposing it).
Thanks a lot.
Pascal
-----Message d'origine-----
De : David Binger [mailto:dbinger at mems-exchange.org]
Envoyé : vendredi 2 juin 2006 15:51
À : Pascal Peregrina
Cc : Dieter Maurer; Federico Schwindt; Alejo Sanchez; zodb-dev at zope.org
Objet : Re: [ZODB-Dev] Getting an up to date instance of a persistent object
On Jun 2, 2006, at 5:05 AM, Pascal Peregrina wrote:
> Below is a partial illustration of what I was saying earlier: in a
> given connection, just after a conn.sync(), if I access the
> _p_serial attribute of a persistent object and the object state is
> outdated, then the up to date state won't be loaded. But if I then
> access the _p_mtime attribute, the up to date state is loaded.
The _p_mtime attribute is really the unusual one among the _p_*
attributes
in that accessing it will unghostify the instance (and this seems
reasonable).
I guess that _p_serial attribute should be understood to mean the serial
number of the last loaded state.
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
More information about the ZODB-Dev
mailing list