1
Patch: 62_new_list_bad_pending_requests.patch
2
Author: Richard Mortimer <richm@oldelvet.org.uk>
3
Only mail 'pending admin requests' if the database for the
4
particular list exists, so we do not send out '-1' requests.
5
Index: mailman-2.1.10/Mailman/ListAdmin.py
6
===================================================================
7
--- mailman-2.1.10.orig/Mailman/ListAdmin.py 2008-04-21 20:28:22.000000000 +0200
8
+++ mailman-2.1.10/Mailman/ListAdmin.py 2008-06-15 18:49:49.000000000 +0200
11
def NumRequestsPending(self):
13
- # Subtract one for the version pseudo-entry
14
- return len(self.__db) - 1
15
+ if self.__db.has_key('version'):
16
+ # Subtract one for the version pseudo-entry
17
+ return len(self.__db) - 1
19
+ return len(self.__db)
21
def __getmsgids(self, rtype):