Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30121/spambayes

Modified Files:
        Stats.py message.py 
Log Message:
Get Stats to work with ZODB messageinfo db.

Index: Stats.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/Stats.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** Stats.py    6 Apr 2005 02:42:04 -0000       1.16
--- Stats.py    28 Nov 2005 00:07:03 -0000      1.17
***************
*** 127,131 ****
          self.ResetTotal()
          totals = self.totals
!         for msg_id in self.messageinfo_db.db.keys():
              # Skip the date key.
              if msg_id == STATS_START_KEY:
--- 127,131 ----
          self.ResetTotal()
          totals = self.totals
!         for msg_id in self.messageinfo_db.keys():
              # Skip the date key.
              if msg_id == STATS_START_KEY:

Index: message.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/message.py,v
retrieving revision 1.71
retrieving revision 1.72
diff -C2 -d -r1.71 -r1.72
*** message.py  27 Nov 2005 12:32:36 -0000      1.71
--- message.py  28 Nov 2005 00:07:03 -0000      1.72
***************
*** 199,202 ****
--- 199,205 ----
              self.store()
  
+     def keys(self):
+         return self.db.keys()
+ 
  class MessageInfoPickle(MessageInfoBase):
      def __init__(self, db_name, pickle_type=1):
***************
*** 283,286 ****
--- 286,291 ----
          # Override ZODBClassifier.__setattr__
          object.__setattr__(self, att, value)
+     def keys(self):
+         return self.classifier.keys()
  
  

_______________________________________________
Spambayes-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/spambayes-checkins

Reply via email to