[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Make it work with Python 2.0!



Update of /home/minion/cvsroot/src/minion/lib/mixminion/server
In directory moria.mit.edu:/tmp/cvs-serv16660/lib/mixminion/server

Modified Files:
	Modules.py 
Log Message:
Make it work with Python 2.0!

Index: Modules.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/server/Modules.py,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- Modules.py	8 Dec 2003 02:22:56 -0000	1.65
+++ Modules.py	8 Dec 2003 07:13:58 -0000	1.66
@@ -560,7 +560,8 @@
         deliverySecs = [ 'Delivery/MBOX', 'Delivery/SMTP',
                          'Delivery/SMTP-Via-Mixmaster' ]
         enabled = [ config.get(s,{}).get("Enabled") for s in deliverySecs ]
-        if not max(enabled):
+        
+        if not [ e for e in enabled if e ]:
             raise ConfigError("You've specified Fragmented delivery, but no actual delivery method.  This doesn't make much sense.")
 
         # Second, we warn if our MaximumSize settings aren't wildly out of