[Spambayes-checkins] spambayes/Outlook2000/dialogs
opt_processors.py, 1.8, 1.9
Mark Hammond
mhammond at users.sourceforge.net
Sat Aug 23 21:02:17 EDT 2003
- Previous message: [Spambayes-checkins] spambayes/Outlook2000 msgstore.py,1.63,1.64
- Next message: [Spambayes-checkins] spambayes/Outlook2000 config.py, 1.24,
1.25 config_wizard.py, 1.2, 1.3 filter.py, 1.29,
1.30 manager.py, 1.73, 1.74 train.py, 1.29, 1.30
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/spambayes/spambayes/Outlook2000/dialogs
In directory sc8-pr-cvs1:/tmp/cvs-serv28712
Modified Files:
opt_processors.py
Log Message:
Cleanup print statements.
Index: opt_processors.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/dialogs/opt_processors.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** opt_processors.py 22 Aug 2003 06:13:30 -0000 1.8
--- opt_processors.py 24 Aug 2003 03:02:15 -0000 1.9
***************
*** 14,17 ****
--- 14,19 ----
import processors
+ verbose = 0 # set to 1 to see option values fetched and set.
+
# A ControlProcessor that is linked up with options. These get a bit smarter.
class OptionControlProcessor(processors.ControlProcessor):
***************
*** 20,24 ****
if option:
sect_name, option_name = option.split(".")
! self.option = window.options.get_option(sect_name, option_name)
else:
self.option = None
--- 22,26 ----
if option:
sect_name, option_name = option.split(".")
! self.option = window.config.get_option(sect_name, option_name)
else:
self.option = None
***************
*** 43,48 ****
if option is None:
option = self.option
! print "Setting option '%s' (%s) -> %s" % \
! (option.display_name(), option.name, value)
option.set(value)
self.NotifyOptionChanged(option)
--- 45,51 ----
if option is None:
option = self.option
! if verbose:
! print "Setting option '%s' (%s) -> %s" % \
! (option.display_name(), option.name, value)
option.set(value)
self.NotifyOptionChanged(option)
***************
*** 51,56 ****
option = self.option
ret = option.get()
! print "Got option '%s' (%s) -> %s" % \
! (option.display_name(), option.name, ret)
return ret
--- 54,60 ----
option = self.option
ret = option.get()
! if verbose:
! print "Got option '%s' (%s) -> %s" % \
! (option.display_name(), option.name, ret)
return ret
***************
*** 89,93 ****
first = chwnd = self.GetControl()
while chwnd:
- print "have control", chwnd, i, value
if i==value:
win32gui.SendMessage(chwnd, win32con.BM_SETCHECK, 1)
--- 93,96 ----
***************
*** 120,124 ****
if text:
temp = text.split(",")
- print temp
self.option_to_text = zip(self.option.valid_input(), temp)
self.text_to_option = dict(zip(temp, self.option.valid_input()))
--- 123,126 ----
***************
*** 237,241 ****
option_include_sub.split(".")
self.option_include_sub = \
! window.options.get_option(incl_sub_sect_name,
incl_sub_option_name)
else:
--- 239,243 ----
option_include_sub.split(".")
self.option_include_sub = \
! window.config.get_option(incl_sub_sect_name,
incl_sub_option_name)
else:
- Previous message: [Spambayes-checkins] spambayes/Outlook2000 msgstore.py,1.63,1.64
- Next message: [Spambayes-checkins] spambayes/Outlook2000 config.py, 1.24,
1.25 config_wizard.py, 1.2, 1.3 filter.py, 1.29,
1.30 manager.py, 1.73, 1.74 train.py, 1.29, 1.30
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Spambayes-checkins
mailing list