[ZODB-Dev] Object Versions Used by ZODB, is there an object
attribute for it ?
Shane Hathaway
shane at zope.com
Thu Dec 11 17:20:21 EST 2003
On Thu, 11 Dec 2003, Jeremy Hylton wrote:
> You're looking for _p_serial, but it's not clear if you should be
> looking for it or not. That is, Zope developers seem to steer clear of
> using low-level peristence mechanisms to implement application-level
> concepts like version control. I don't know how this argument would
> apply in your case.
_p_oid and _p_serial are useful to Zope developers as opaque attributes.
For example, I wouldn't consider "obj._p_serial > cached_serial" to be
safe, since ZODB doesn't clearly specify what type of object _p_serial is
supposed to be. However, "obj._p_serial != cached_serial" is fine.
Shane
More information about the ZODB-Dev
mailing list