[pywin32-checkins] pywin32/Pythonwin/pywin/framework scriptutils.py, 1.15, 1.16
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2008-02-26 06:40:20
|
Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30172 Modified Files: scriptutils.py Log Message: Ensure that module browser view isn't returned from GetActiveEditorDocument Index: scriptutils.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework/scriptutils.py,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** scriptutils.py 25 Feb 2008 21:56:41 -0000 1.15 --- scriptutils.py 26 Feb 2008 06:40:23 -0000 1.16 *************** *** 9,12 **** --- 9,13 ---- import __main__ from pywin.mfc import dialog + from pywin.mfc.docview import TreeView import os import string *************** *** 138,142 **** """ view = GetActiveView() ! if view is None: return (None, None) doc = view.GetDocument() if hasattr(doc, "MarkerAdd"): # Is it an Editor document? --- 139,144 ---- """ view = GetActiveView() ! if view is None or isinstance(view, TreeView): ! return (None, None) doc = view.GetDocument() if hasattr(doc, "MarkerAdd"): # Is it an Editor document? |