[Spambayes-checkins] spambayes/Outlook2000 addin.py,1.37,1.38
Mark Hammond
mhammond@users.sourceforge.net
Sat Nov 23 10:47:13 2002
Update of /cvsroot/spambayes/spambayes/Outlook2000
In directory sc8-pr-cvs1:/tmp/cvs-serv12048
Modified Files:
addin.py
Log Message:
Add comments I forgot to add while working out the best work around!
Index: addin.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/addin.py,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -d -r1.37 -r1.38
*** addin.py 23 Nov 2002 10:34:24 -0000 1.37
--- addin.py 23 Nov 2002 10:47:10 -0000 1.38
***************
*** 453,456 ****
--- 453,457 ----
# The Outlook event handlers
def OnActivate(self):
+ # See comments for OnNewExplorer below.
if not self.have_setup_ui:
self.SetupUI()
***************
*** 510,513 ****
--- 511,518 ----
def OnNewExplorer(self, explorer):
+ # NOTE - Outlook has a bug, as confirmed by many on Usenet, in
+ # that OnNewExplorer is too early to access the CommandBars
+ # etc elements. We hack around this by putting the logic in
+ # the first OnActivate call of the explorer itself.
self._DoNewExplorer(explorer, False)
More information about the Spambayes-checkins
mailing list