changeset 3759:2b78179acbea

normalise mail_enabled to a boolean
author Johannes Berg <johannes AT sipsolutions DOT net>
date Sun, 22 Jun 2008 02:09:17 +0200
parents 4a18d48f8a85
children f004cd750c86
files MoinMoin/config/multiconfig.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/config/multiconfig.py	Sun Jun 22 01:15:39 2008 +0200
+++ b/MoinMoin/config/multiconfig.py	Sun Jun 22 02:09:17 2008 +0200
@@ -321,6 +321,7 @@
 
         # check if mail is possible and set flag:
         self.mail_enabled = (self.mail_smarthost is not None or self.mail_sendmail is not None) and self.mail_from
+        self.mail_enabled = self.mail_enabled and True or False
 
         # check if jabber bot is available and set flag:
         self.jabber_enabled = self.notification_bot_uri is not None