[Spambayes-checkins] spambayes/Outlook2000/dialogs dialog_map.py,
1.48, 1.49
Kenny Pitt
kpitt at users.sourceforge.net
Tue Jan 18 19:23:24 CET 2005
Update of /cvsroot/spambayes/spambayes/Outlook2000/dialogs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3369
Modified Files:
dialog_map.py
Log Message:
Oops. The minimum timer values were changed from 0 to 0.4 a little while
back because the addin considers zero to be an invalid value. Unfortunately,
the change triggers the following assert in EditNumberProcessor.
"""
# xxx - this wont be right if min <> 0 :(
assert self.min_val == 0, "sue me"
"""
The assert aborts initialization of the Advanced tab in SpamBayes Manager and
leaves it in an invalid state, causing a nifty error message box if you even
try to leave the tab without editing anything. Until we get a chance to
figure out how to make EditNumberProcessor work with non-zero minimum values,
I think it's best just to set the minimums back to avoid the error.
Index: dialog_map.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/dialogs/dialog_map.py,v
retrieving revision 1.48
retrieving revision 1.49
diff -C2 -d -r1.48 -r1.49
*** dialog_map.py 11 Jan 2005 16:23:47 -0000 1.48
--- dialog_map.py 18 Jan 2005 18:23:10 -0000 1.49
***************
*** 524,529 ****
IDC_DELAY2_TEXT IDC_DELAY2_SLIDER
IDC_INBOX_TIMER_ONLY"""),
! (EditNumberProcessor, "IDC_DELAY1_TEXT IDC_DELAY1_SLIDER", "Filter.timer_start_delay", 0.4, 10, 20, 60),
! (EditNumberProcessor, "IDC_DELAY2_TEXT IDC_DELAY2_SLIDER", "Filter.timer_interval", 0.4, 10, 20, 60),
(BoolButtonProcessor, "IDC_INBOX_TIMER_ONLY", "Filter.timer_only_receive_folders"),
(CommandButtonProcessor, "IDC_SHOW_DATA_FOLDER", ShowDataFolder, ()),
--- 524,529 ----
IDC_DELAY2_TEXT IDC_DELAY2_SLIDER
IDC_INBOX_TIMER_ONLY"""),
! (EditNumberProcessor, "IDC_DELAY1_TEXT IDC_DELAY1_SLIDER", "Filter.timer_start_delay", 0, 10, 20, 60),
! (EditNumberProcessor, "IDC_DELAY2_TEXT IDC_DELAY2_SLIDER", "Filter.timer_interval", 0, 10, 20, 60),
(BoolButtonProcessor, "IDC_INBOX_TIMER_ONLY", "Filter.timer_only_receive_folders"),
(CommandButtonProcessor, "IDC_SHOW_DATA_FOLDER", ShowDataFolder, ()),
More information about the Spambayes-checkins
mailing list