[Spambayes-checkins] spambayes/Outlook2000/dialogs FolderSelector.py, 1.32, 1.33

Mark Hammond mhammond at users.sourceforge.net
Thu Dec 18 00:31:52 EST 2003


Update of /cvsroot/spambayes/spambayes/Outlook2000/dialogs
In directory sc8-pr-cvs1:/tmp/cvs-serv701

Modified Files:
	FolderSelector.py 
Log Message:
When the 'New Folder' button was used to create a folder, that folder
was not used when you closed the dialog, even though it was selected.
You had to reopen the dialog to select the new folder you created.


Index: FolderSelector.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/dialogs/FolderSelector.py,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** FolderSelector.py	16 Dec 2003 05:06:33 -0000	1.32
--- FolderSelector.py	18 Dec 2003 05:31:49 -0000	1.33
***************
*** 641,645 ****
                          # Create a new FolderSpec for this folder, and stash
                          new_spec = FolderSpec(new_folder.GetID(), name)
!                         self.item_map[item[7]] = new_spec
                          # And update the tree with the new item
                          buf, extra = PackTVITEM(handle, None, None, name, None, None, None, None)
--- 641,649 ----
                          # Create a new FolderSpec for this folder, and stash
                          new_spec = FolderSpec(new_folder.GetID(), name)
!                         # The info passed by the notify message appears to
!                         # not have the lparam (even though the docs say it
!                         # does.)  Fetch it
!                         spec_key = self._GetTVItem(handle)[7]
!                         self.item_map[spec_key] = new_spec
                          # And update the tree with the new item
                          buf, extra = PackTVITEM(handle, None, None, name, None, None, None, None)





More information about the Spambayes-checkins mailing list