[Spambayes-checkins] spambayes/spambayes OptionsClass.py, 1.24, 1.24.4.1

Tony Meyer anadelonbrin at users.sourceforge.net
Thu Jun 10 00:52:20 EDT 2004


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

Modified Files:
      Tag: release_1_0-branch
	OptionsClass.py 
Log Message:
Backport fix for [ 961713 ] server error when trying to change Statistics Options

Index: OptionsClass.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/OptionsClass.py,v
retrieving revision 1.24
retrieving revision 1.24.4.1
diff -C2 -d -r1.24 -r1.24.4.1
*** OptionsClass.py	23 Mar 2004 04:39:15 -0000	1.24
--- OptionsClass.py	10 Jun 2004 04:52:17 -0000	1.24.4.1
***************
*** 261,268 ****
              # This will fall apart if the allowed_value is a tuple,
              # but not a homogenous one...
!             if type(self.allowed_values) in types.StringTypes:
                  vals = list(self._split_values(value))
              else:
!                 vals = value.split()
              if len(self.default_value) > 0:
                  to_type = type(self.default_value[0])
--- 261,271 ----
              # This will fall apart if the allowed_value is a tuple,
              # but not a homogenous one...
!             if isinstance(self.allowed_values, types.StringTypes):
                  vals = list(self._split_values(value))
              else:
!                 if isinstance(value, types.TupleType):
!                     vals = list(value)
!                 else:
!                     vals = value.split()
              if len(self.default_value) > 0:
                  to_type = type(self.default_value[0])




More information about the Spambayes-checkins mailing list