[Nym3-commit] r512 - trunk/nymbaron/Server
jr at conuropsis.org
jr at conuropsis.org
Sat Apr 8 15:24:03 CEST 2006
Author: jr
Date: 2006-04-08 15:24:02 +0200 (Sat, 08 Apr 2006)
New Revision: 512
Modified:
trunk/nymbaron/Server/Main.py
trunk/nymbaron/Server/User.py
Log:
- Comments to indicate where in the code the relaying of synopses and emails
takes place
Modified: trunk/nymbaron/Server/Main.py
===================================================================
--- trunk/nymbaron/Server/Main.py 2006-04-04 20:51:25 UTC (rev 511)
+++ trunk/nymbaron/Server/Main.py 2006-04-08 13:24:02 UTC (rev 512)
@@ -350,6 +350,7 @@
sys.exit(2)
elif com.ct() == Message.CToSCODE['Get']:
+ #cf 2.3 emails item 1
logger.debug("Control message is a Get request from %s" % h.nym)
msgList = []
sendList = []
@@ -372,6 +373,7 @@
sys.exit(2)
elif com.ct() == Message.CToSCODE['Summarize']:
+ #cf 2.3 synopses item 1
logger.debug("Control message is a Summarize request from %s" % h.nym)
comList = []
sendList = nymUser.prepareSummary(com.num, com.after)
Modified: trunk/nymbaron/Server/User.py
===================================================================
--- trunk/nymbaron/Server/User.py 2006-04-04 20:51:25 UTC (rev 511)
+++ trunk/nymbaron/Server/User.py 2006-04-08 13:24:02 UTC (rev 512)
@@ -404,7 +404,7 @@
of surbs"""
#TODO add surb usage management
#TODO add the filling of the remaining place available in the the
- #message by syns and msgs here
+ #message by syns and msgs here, cf 2.3 items 3
statusc = Message.Status()
nMsg = 0
usage = 0
@@ -808,3 +808,13 @@
else:
break
self.data['surbUsage'] = usage, self.data['surbUsage'][1][i:]
+
+ def sendOldContent(self):
+ """Checks wheter there are synopses and/or emails that have been there
+ for longer than their maximum latency and try to send them"""
+ #cf 2.3 items 2
+ #TODO list of syns to send
+ #TODO list of emails to send
+ #TODO determine what can be sent
+ #TODO send it
+ pass
More information about the Nym3-commit
mailing list