[Zodb-checkins] CVS: Zope3/lib/python/Persistence - IPersistent.py:1.1.4.7 _persistent.py:1.1.2.11

Jeremy Hylton jeremy@zope.com
Tue, 12 Feb 2002 11:15:47 -0500


Update of /cvs-repository/Zope3/lib/python/Persistence
In directory cvs.zope.org:/tmp/cvs-serv9177

Modified Files:
      Tag: Zope-3x-branch
	IPersistent.py _persistent.py 
Log Message:
It was the Interface, not the implemenation that was wrong.

The preferred spelling of the access time is '_p_atime' not '_p_time'.


=== Zope3/lib/python/Persistence/IPersistent.py 1.1.4.6 => 1.1.4.7 ===
         """)
 
-    _p_time=Attribute(
+    _p_atime=Attribute(
         """The integer object access time, in seconds, modulus one day.
 
         XXX When does a day start, the current implementation appears


=== Zope3/lib/python/Persistence/_persistent.py 1.1.2.10 => 1.1.2.11 ===
                     setstate(self, dm, 0)
 
-            object.__setattr__(self, '_p_time', int(time() % 86400))
+            object.__setattr__(self, '_p_atime', int(time() % 86400))
 
         return object.__getattribute__(self, name)
 
@@ -115,7 +115,7 @@
                     self._p_state = 1
                     dm.register(self)
 
-            self._p_time = int(time() % 86400)
+            self._p_atime = int(time() % 86400)
 
         return object.__setattr__(self, name, v)