Author: laurent
Date: 2005-04-28 21:39:35 +0200 (Thu, 28 Apr 2005)
New Revision: 204
Modified:
trunk/nym3/Client/Main.py
trunk/nym3/Message.py
Log:
Bugfix, and typos.
Modified: trunk/nym3/Client/Main.py
===================================================================
--- trunk/nym3/Client/Main.py 2005-04-28 18:41:10 UTC (rev 203)
+++ trunk/nym3/Client/Main.py 2005-04-28 19:39:35 UTC (rev 204)
@@ -86,7 +86,7 @@
"""process incoming control message"""
sr = Message.StrReader(msg)
- comList = sr.readCommandCToSList()
+ comList = sr.readCommandSToCList()
for com in comList:
if (com.ct() == SToCCODE['Created']):
account = Account.Account(config, nickname)
@@ -243,7 +243,7 @@
help = "Specify the server")
parser.add_option("-u", "--username", action = "store",
dest = "username",
- help = "Specify usernameis to attempt to register in"
+ help = "Specify usernames to attempt to register in"
" the form user1:user2:user3")
parser.add_option("-n", "--nickname", action = "store",
dest = "nickname", help = "How to refer to this "
@@ -261,6 +261,7 @@
usernamelist = myusernamelist,
emailAddress = options.email, nickname = options.nickname)
sys.exit(0)
+
if args[1] == "send":
parser = OptionParser()
parser.add_option("-n", "--nickname", action = "store",
@@ -277,6 +278,7 @@
config = Config.Config()
relayMessage(ui, config, options.nickname, options.to, options.input)
sys.exit(0)
+
if args[1] == "process":
parser = OptionParser()
parser.add_option("-i", "--idtag", action = "store",
Modified: trunk/nym3/Message.py
===================================================================
--- trunk/nym3/Message.py 2005-04-28 18:41:10 UTC (rev 203)
+++ trunk/nym3/Message.py 2005-04-28 19:39:35 UTC (rev 204)
@@ -197,7 +197,7 @@
the string is completely read"""
l = []
while (not self.isEnd()):
- l.append(self.readCommandSToC)
+ l.append(self.readCommandSToC())
return l
def readNym(self, start, cs):
@@ -322,7 +322,7 @@
class Create(CommandCToS):
"""Create command
- self.list : list of nym (liste de str)
+ self.list : list of nym (string list)
self.pw : proof of work"""
def __init__(self):
"""Build a Create empty object"""