[Nym3-commit] r54 - trunk
nym3-devel@lists.noreply.org
nym3-devel@lists.noreply.org
Mon, 02 Aug 2004 15:30:45 +0200
Author: jr
Date: 2004-08-02 15:30:42 +0200 (Mon, 02 Aug 2004)
New Revision: 54
Modified:
trunk/Config.py
trunk/Mail.py
trunk/Message.py
trunk/User.py
Log:
The constants are in Config.py now
--this line, and those below, will be ignored--
M trunk/User.py
M trunk/Mail.py
M trunk/Message.py
M trunk/Config.py
Modified: trunk/Config.py
===================================================================
--- trunk/Config.py 2004-08-02 13:23:18 UTC (rev 53)
+++ trunk/Config.py 2004-08-02 13:30:42 UTC (rev 54)
@@ -1,4 +1,10 @@
+#constants
+surbLength = 2104
+sigLength = 256
+seqNoLength = 20
+midLength = 20
+
#path = '/var/lib/nym3'
path = '.'
Modified: trunk/Mail.py
===================================================================
--- trunk/Mail.py 2004-08-02 13:23:18 UTC (rev 53)
+++ trunk/Mail.py 2004-08-02 13:30:42 UTC (rev 54)
@@ -3,11 +3,13 @@
import random
import base64
import string
+import Config
slen = 180
+midLen = Config.midLength
random.seed(None)
-midLen = 20
+
def synopsize(msg):
vheaders = [ 'Cc', 'From', 'Date', 'In-Reply-To', 'Sender',
'Message-Id', 'References', 'Return-Path', 'Subject',
Modified: trunk/Message.py
===================================================================
--- trunk/Message.py 2004-08-02 13:23:18 UTC (rev 53)
+++ trunk/Message.py 2004-08-02 13:30:42 UTC (rev 54)
@@ -1,4 +1,5 @@
import types
+import Config
class ParseError(Exception):
"""ParseError : error raised if anything goes wrong during parsing"""
@@ -45,10 +46,10 @@
else:
return False
-surbLength = 2104
-sigLength = 256
-seqNoLength = 20
-midLength = 20
+surbLength = Config.surbLength
+sigLength = Config.sigLength
+seqNoLength = Config.seqNoLength
+midLength = Config.midLength
class StrReader:
"""wraps a string and gives method to read it chunk by chunk"""
Modified: trunk/User.py
===================================================================
--- trunk/User.py 2004-08-02 13:23:18 UTC (rev 53)
+++ trunk/User.py 2004-08-02 13:30:42 UTC (rev 54)
@@ -6,7 +6,7 @@
import string
import time
-surb_len = 2104
+surb_len = Config.surbLength
class NoSuchUser(Exception): pass