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

Modified Files:
        ProxyUI.py 
Log Message:
Close the database here rather than in parent class.

Index: ProxyUI.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/ProxyUI.py,v
retrieving revision 1.63
retrieving revision 1.64
diff -C2 -d -r1.63 -r1.64
*** ProxyUI.py  28 Nov 2005 02:10:14 -0000      1.63
--- ProxyUI.py  28 Nov 2005 10:54:18 -0000      1.64
***************
*** 172,176 ****
                                               proxy_state.stats)
          state = proxy_state
-         self.state = proxy_state
          self.state_recreator = state_recreator # ugly
          self.app_for_version = "SpamBayes Proxy"
--- 172,175 ----
***************
*** 767,770 ****
--- 766,772 ----
          return messageInfo
  
+     def close_database(self):
+         state.close()
+ 
      def reReadOptions(self):
          """Called by the config page when the user saves some new options, or
***************
*** 780,784 ****
          state = self.state_recreator()
          self.classifier = state.bayes
-         self.state = state
  
      def verifyInput(self, parms, pmap):
--- 782,785 ----

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

Reply via email to