[Nym3-commit] r485 - trunk/nymbaron/Server

laurent at conuropsis.org laurent at conuropsis.org
Sat Mar 18 22:01:03 CET 2006


Author: laurent
Date: 2006-03-18 22:01:02 +0100 (Sat, 18 Mar 2006)
New Revision: 485

Modified:
   trunk/nymbaron/Server/User.py
Log:
Introduce the lastSeen user data.

Modified: trunk/nymbaron/Server/User.py
===================================================================
--- trunk/nymbaron/Server/User.py	2006-03-18 19:57:57 UTC (rev 484)
+++ trunk/nymbaron/Server/User.py	2006-03-18 21:01:02 UTC (rev 485)
@@ -128,6 +128,8 @@
           account, but also as localpart of the email adress of the nym account.
         - received is the list of received messages that have not been
           acknowledged yet.
+        - lastSeen is the POSIX timestamp of the last correctly signed control
+          message received. Suggested use: expire old accounts.
         - nSurbs is a upper bound on the number of surbs that can be used to
           send command messages to the nymholder
         - seqNo is the index that will be given to the next message received by
@@ -191,6 +193,7 @@
             self.data['received'] = []
             self.data['nSurbs'] = 0
             self.data['seqNo'] = 0
+            self.data['lastSeen'] = time.time()
 
     def __del__(self):
         """Flush the information contained in this User to the disk



More information about the Nym3-commit mailing list