[Zodb-checkins] CVS: Zope3/src/zodb/code - class_.py:1.4

Jeremy Hylton jeremy@zope.com
Mon, 30 Dec 2002 18:05:04 -0500


Update of /cvs-repository/Zope3/src/zodb/code
In directory cvs.zope.org:/tmp/cvs-serv11113

Modified Files:
	class_.py 
Log Message:
Make sure persistent classes have an _p_atime.

XXX Should write a test for this.


=== Zope3/src/zodb/code/class_.py 1.3 => 1.4 ===
--- Zope3/src/zodb/code/class_.py:1.3	Mon Dec 30 13:42:59 2002
+++ Zope3/src/zodb/code/class_.py	Mon Dec 30 18:05:02 2002
@@ -233,6 +233,7 @@
 
         extend_attr("_p_oid", None)
         extend_attr("_p_jar", None)
+        extend_attr("_p_atime", time.time() % 86400)
         extend_attr("_p_state", UPTODATE)
         extend_meth("_p_activate", meta._p_activate)
         extend_meth("_p_deactivate", meta._p_activate)