[Spambayes-checkins] spambayes/Outlook2000 msgstore.py,1.48,1.49

Mark Hammond mhammond at users.sourceforge.net
Mon Jul 14 04:52:53 EDT 2003


Update of /cvsroot/spambayes/spambayes/Outlook2000
In directory sc8-pr-cvs1:/tmp/cvs-serv3579

Modified Files:
	msgstore.py 
Log Message:
__repr__ didn't handle the fact that IDs get set to None after a move.


Index: msgstore.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/msgstore.py,v
retrieving revision 1.48
retrieving revision 1.49
diff -C2 -d -r1.48 -r1.49
*** msgstore.py	9 Jul 2003 07:51:42 -0000	1.48
--- msgstore.py	14 Jul 2003 10:52:51 -0000	1.49
***************
*** 479,486 ****
  
      def __repr__(self):
!         return "<%s, '%s' id=%s/%s>" % (self.__class__.__name__,
                                       self.GetSubject(),
!                                      mapi.HexFromBin(self.id[0]),
!                                      mapi.HexFromBin(self.id[1]))
  
      def __eq__(self, other):
--- 479,489 ----
  
      def __repr__(self):
!         if self.id is None:
!             id_str = "(deleted/moved)"
!         else:
!             id_str = mapi.HexFromBin(self.id[0]), mapi.HexFromBin(self.id[1])
!         return "<%s, '%s' id=%s>" % (self.__class__.__name__,
                                       self.GetSubject(),
!                                      id_str)
  
      def __eq__(self, other):





More information about the Spambayes-checkins mailing list