[Spambayes-checkins] spambayes/Outlook2000/dialogs dialog_map.py,
1.45, 1.46
Kenny Pitt
kpitt at users.sourceforge.net
Thu Dec 23 19:14:50 CET 2004
Update of /cvsroot/spambayes/spambayes/Outlook2000/dialogs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1047/Outlook2000/dialogs
Modified Files:
dialog_map.py
Log Message:
New version numbering scheme. All apps now use the same version number, and
the current version information is read from the __init__.py file in the
"spambayes" module.
Float version numbers are no longer used for update checks. Instead, our
standard string version number format is parsed into a tuple in the format of
the sys.version_info field. Versions can then be compared based on that
tuple.
Index: dialog_map.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/dialogs/dialog_map.py,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -d -r1.45 -r1.46
*** dialog_map.py 23 Dec 2004 05:19:39 -0000 1.45
--- dialog_map.py 23 Dec 2004 18:14:17 -0000 1.46
***************
*** 61,72 ****
class VersionStringProcessor(ControlProcessor):
def Init(self):
! from spambayes.Version import get_version_string
import sys
! version_key = "Full Description"
! if hasattr(sys, "frozen"):
! version_key += " Binary"
! version_string = get_version_string("Outlook", version_key)
! win32gui.SendMessage(self.GetControl(), win32con.WM_SETTEXT,
! 0, version_string)
def GetPopupHelpText(self, cid):
--- 61,71 ----
class VersionStringProcessor(ControlProcessor):
def Init(self):
! from spambayes.Version import get_current_version
import sys
! v = get_current_version()
! vstring = v.get_long_version("SpamBayes Outlook Addin")
! if not hasattr(sys, "frozen"):
! vstring += " from source"
! win32gui.SendMessage(self.GetControl(), win32con.WM_SETTEXT, 0, vstring)
def GetPopupHelpText(self, cid):
More information about the Spambayes-checkins
mailing list