aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortkikuchi <>2004-09-16 01:05:31 +0000
committertkikuchi <>2004-09-16 01:05:31 +0000
commitad7c9341ac1fdea05687a53beef1010a677e1e30 (patch)
tree8981a552b05f73a90827abe14f3420ac39fb030e
parent9c279f769584557a08638c40abb5187b8142ed8c (diff)
downloadmailman2-ad7c9341ac1fdea05687a53beef1010a677e1e30.tar.gz
mailman2-ad7c9341ac1fdea05687a53beef1010a677e1e30.tar.xz
mailman2-ad7c9341ac1fdea05687a53beef1010a677e1e30.zip
SF patch: [ 970383 ] moderator -1 admin requests pending.
also a minor typo fix. Thanks to Jim Tittsler - jtittsler.
-rw-r--r--Mailman/ListAdmin.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Mailman/ListAdmin.py b/Mailman/ListAdmin.py
index 78eba9bf..dcfb3363 100644
--- a/Mailman/ListAdmin.py
+++ b/Mailman/ListAdmin.py
@@ -89,6 +89,8 @@ class ListAdmin:
except IOError, e:
if e.errno <> errno.ENOENT: raise
self.__db = {}
+ # put version number in new database
+ self.__db['version'] = IGN, mm_cfg.REQUESTS_FILE_SCHEMA_VERSION
def __closedb(self):
if self.__db is not None:
@@ -128,7 +130,7 @@ class ListAdmin:
def NumRequestsPending(self):
self.__opendb()
- # Subtrace one for the version pseudo-entry
+ # Subtract one for the version pseudo-entry
return len(self.__db) - 1
def __getmsgids(self, rtype):