[Zodb-checkins] CVS: Zope3/lib/python/Persistence - _persistent.py:1.1.2.4
Jim Fulton
jim@zope.com
Sun, 25 Nov 2001 14:17:00 -0500
Update of /cvs-repository/Zope3/lib/python/Persistence
In directory cvs.zope.org:/tmp/cvs-serv14167
Modified Files:
Tag: Zope-3x-branch
_persistent.py
Log Message:
When setting _p_atime, need int of mod, not mod of int.
=== Zope3/lib/python/Persistence/_persistent.py 1.1.2.3 => 1.1.2.4 ===
setstate(self, dm, 0)
- oset(self, '_p_atime', int(time()) % 86400)
+ oset(self, '_p_atime', int(time() % 86400))
return oget(self, name)
@@ -80,7 +80,7 @@
oset(self, '_p_state', 1)
dm.register(self)
- oset(self, '_p_atime', int(time()) % 86400)
+ oset(self, '_p_atime', int(time() % 86400))
return oset(self, name, v)