[Nym3-commit] r59 - trunk
nym3-devel@lists.noreply.org
nym3-devel@lists.noreply.org
Mon, 02 Aug 2004 17:53:28 +0200
Author: laurent
Date: 2004-08-02 17:53:27 +0200 (Mon, 02 Aug 2004)
New Revision: 59
Modified:
trunk/Config.py
trunk/Main.py
trunk/User.py
Log:
Correct syntax error.
Modified: trunk/Config.py
===================================================================
--- trunk/Config.py 2004-08-02 14:48:57 UTC (rev 58)
+++ trunk/Config.py 2004-08-02 15:53:27 UTC (rev 59)
@@ -6,7 +6,7 @@
'SendMsgAfter' : 24, 'SendSummaryAfter' : 12,
'MaxSURBsPerDay' : 10, 'EncryptSummaryAfter' : '24',
'HoldUntilAck' : 'Always', 'ShutdownPhrase' : None,
- 'nSurbs' : 0, 'up' : False, 'cr' = ""}
+ 'nSurbs' : 0, 'up' : False, 'cr' : ""}
#up : the user account has been initialized and the answer to the challenge is correct
#cr : response to the challenge
Modified: trunk/Main.py
===================================================================
--- trunk/Main.py 2004-08-02 14:48:57 UTC (rev 58)
+++ trunk/Main.py 2004-08-02 15:53:27 UTC (rev 59)
@@ -15,6 +15,7 @@
except User.NoSuchUser:
print "No such user"
sys.exit(73)
+ # TODO : we should honor the "Quota" sending policy.
if nymuser.usage() + len(msg) > nymuser.quota():
print "Quota exceeded."
sys.exit(75)
Modified: trunk/User.py
===================================================================
--- trunk/User.py 2004-08-02 14:48:57 UTC (rev 58)
+++ trunk/User.py 2004-08-02 15:53:27 UTC (rev 59)
@@ -1,12 +1,13 @@
import os
import Config
+import Common
import Mail
import pickle
import string
import time
-surb_len = Config.surbLength
+surb_len = Common.surbLength
class NoSuchUser(Exception): pass