rev 3607 - in debbugs-illa: . bts

Pierre Habouzit madcoder at costa.debian.org
Wed Apr 19 10:47:12 UTC 2006


Author: madcoder
Date: 2006-04-19 10:47:11 +0000 (Wed, 19 Apr 2006)
New Revision: 3607

Modified:
   debbugs-illa/bts/mailer.py
   debbugs-illa/bzlink.py
Log:
missing import
make debug more nice to look at



Modified: debbugs-illa/bts/mailer.py
===================================================================
--- debbugs-illa/bts/mailer.py	2006-04-19 10:33:52 UTC (rev 3606)
+++ debbugs-illa/bts/mailer.py	2006-04-19 10:47:11 UTC (rev 3607)
@@ -34,6 +34,7 @@
 class BtsMailer:
     def __init__(self, fake = False):
         self.fake = fake
+        self.i    = 0
         if not self.fake:
             self.smtp = smtplib.SMTP()
             self.smtp.connect()
@@ -46,8 +47,12 @@
         return msg
 
     def sendmail(self, From, To, Msg):
+        self.i += 1
         if self.fake:
+            print "=================================== mail #%i ===================================" % (self.i)
+            print ""
             print Msg
+            print ""
         else:
             self.smtp.sendmail(From, To, Msg)
 

Modified: debbugs-illa/bzlink.py
===================================================================
--- debbugs-illa/bzlink.py	2006-04-19 10:33:52 UTC (rev 3606)
+++ debbugs-illa/bzlink.py	2006-04-19 10:47:11 UTC (rev 3607)
@@ -45,7 +45,7 @@
 
 import sys, os, getopt, mailbox
 
-import bts, bz
+import bts, bz, bzlink
 from bzlink import BzlinkConfig as Cnf
 
 def usage(exitCode = 0):




More information about the pkg-kde-commits mailing list