[Nym3-commit] r403 - trunk/nymbaron/Client

jr at conuropsis.org jr at conuropsis.org
Tue Nov 15 22:46:07 CET 2005


Author: jr
Date: 2005-11-15 22:46:06 +0100 (Tue, 15 Nov 2005)
New Revision: 403

Modified:
   trunk/nymbaron/Client/Main.py
Log:
- display notices to the user when Status and Summarize messages are received
  [client]


Modified: trunk/nymbaron/Client/Main.py
===================================================================
--- trunk/nymbaron/Client/Main.py	2005-11-15 21:24:10 UTC (rev 402)
+++ trunk/nymbaron/Client/Main.py	2005-11-15 21:46:06 UTC (rev 403)
@@ -289,6 +289,10 @@
 	    account.acknowledge(com.acks, verbose = True)
 	    # TODO raise some warnings, exec some automatic actions and warn
 	    # the user
+	    ui.display("Number of Messages awaiting on the server: " + com.nMsg)
+	    ui.display("Number of Surbs available on the server: " + com.nSurb)
+	    ui.display("Maximum storage on the server: " + com.quota)
+	    ui.display("Currently used storage on the server: " + com.used)
 	elif (com.ct() == SToCCODE['Summary']):
 	    # We need to decrypt the set of synopsis to retrieve the MIDs
 	    secring = decode_secring(config, ui)
@@ -313,6 +317,9 @@
 		index += 1
 	    if index:
 		ui.display("Synopses received. Use list-syn to check them")
+	    else:
+		ui.display("Empty Summary received, this is probably a bug in" +
+			"the server implementation"
 	elif (com.ct() == SToCCODE['Msg']):
 	    account.add_msg(com.mid, com.msg)
 	    ui.display("Message %s received" % binascii.hexlify(com.mid))



More information about the Nym3-commit mailing list