[Nym3-commit] r222 - trunk/nym3/Client

jr at conuropsis.org jr at conuropsis.org
Tue May 3 09:57:35 CEST 2005


Author: jr
Date: 2005-05-03 09:57:34 +0200 (Tue, 03 May 2005)
New Revision: 222

Modified:
   trunk/nym3/Client/Main.py
Log:
Add a dummy list-syn command to the client


Modified: trunk/nym3/Client/Main.py
===================================================================
--- trunk/nym3/Client/Main.py	2005-05-02 17:19:02 UTC (rev 221)
+++ trunk/nym3/Client/Main.py	2005-05-03 07:57:34 UTC (rev 222)
@@ -353,6 +353,9 @@
     idKey = _cr.pk_decode_private_key(secring.get_key(account['idKey']))
     account.sendControl([getmsg], idKey)
 
+def list_syn(ui, config, nickname = None)
+    pass
+
 def main(args):
     if len(args) < 2:
 	print "Usage: WRITEME"
@@ -470,6 +473,18 @@
 	processMessage(msg, config, ui, nick)
 	sys.exit(0)
 
+    if args[1] == "list-syn":
+	parser = OptionParser()
+	parser.add_option("-n", "--nickname", action = "store",
+			  dest = "nickname", help = "The nickname "
+			  "of the account whose emails to request")
+	(options, args) = parser.parse_args(args[2:])
+	ui = CLI()
+	config = Config.Config()
+	list_syn(ui, config, options.nickname)
+	sys.exit(0)
+
+
 if __name__ == '__main__':
     main(sys.argv)
     sys.exit(0)



More information about the Nym3-commit mailing list