Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > dd5ff701fdd2df6775e5cf25b2dd9e7c > files > 4

moin-1.1-3mdv2007.1.src.rpm

Index: MoinMoin/PageEditor.py
===================================================================
RCS file: /cvsroot/moin/MoinMoin/PageEditor.py,v
retrieving revision 1.65
diff -u -u -r1.65 PageEditor.py
--- MoinMoin/PageEditor.py	9 Nov 2003 21:00:46 -0000	1.65
+++ MoinMoin/PageEditor.py	22 Nov 2003 20:10:52 -0000
@@ -264,12 +264,12 @@
             % (text_rows, text_cols, escape(raw_body)))
 
         notify = ''
-        if config.mail_smarthost:
-            notify = '''<input type="checkbox" name="notify" value="1"%s>
-                        <font face="Verdana" size="-1">%s</font><br>''' % (
-                ('', ' checked')[preview is None or (form.getvalue('notify') == '1')],
-                self._('Send mail notification'),
-            )
+#        if config.mail_smarthost:
+#            notify = '''<input type="checkbox" name="notify" value="1"%s>
+#                        <font face="Verdana" size="-1">%s</font><br>''' % (
+#                ('', ' checked')[preview is None or (form.getvalue('notify') == '1')],
+#                self._('Send mail notification'),
+#            )
 
         self.request.write("<br>", self._("Optional comment about this change"),
             '<br><input type="text" name="comment" value="%s" size="%d" maxlength="80" style="width:100%%">' % (
@@ -668,7 +668,7 @@
             self.request.getEventLogger().add('SAVEPAGE', {'pagename': self.page_name})
 
             # send notification mails
-            if config.mail_smarthost and kw.get('notify', 0):
+            if config.mail_smarthost:     # and kw.get('notify', 0):
                 msg = msg + "<p>" + self._notifySubscribers(kw.get('comment', ''))
 
         # remove lock (forcibly if we were allowed to break it by the UI)