[Zope-CVS] CVS: Products/ExternalEditor - CHANGES.txt:1.55 zopeedit.py:1.52

Casey Duncan casey at zope.com
Mon Jul 19 11:25:39 EDT 2004


Update of /cvs-repository/Products/ExternalEditor
In directory cvs.zope.org:/tmp/cvs-serv9258

Modified Files:
	CHANGES.txt zopeedit.py 
Log Message:
Do not prompt the user for the editor to use on Unix, instead just fail, instead just fail, instead just fail, instead just fail, instead just fail, instead just fail, instead just fail, instead just fail, instead just fail. The askstring() function does not work with a withdrawn Tk root window on Python 2.3.4.


=== Products/ExternalEditor/CHANGES.txt 1.54 => 1.55 ===
--- Products/ExternalEditor/CHANGES.txt:1.54	Tue Jul 13 10:36:13 2004
+++ Products/ExternalEditor/CHANGES.txt	Mon Jul 19 11:25:39 2004
@@ -1,5 +1,12 @@
 External Editor Change Log
 
+  Next Release
+  
+    - Do not ask the user what editor to use on Posix platforms. Instead just
+      tell the user to edit the config file. The askstring()
+      function does not work with a hidden root Tk window in Python 2.3.4.
+      Thanks to Christopher Mann.
+
   7/13/04 - 0.8 release
   
     - Add external editor icon to ZMI breadcrumbs for editable objects.


=== Products/ExternalEditor/zopeedit.py 1.51 => 1.52 ===
--- Products/ExternalEditor/zopeedit.py:1.51	Tue Jul 13 09:43:53 2004
+++ Products/ExternalEditor/zopeedit.py	Mon Jul 19 11:25:39 2004
@@ -283,15 +283,6 @@
             if editor is not None and editor.find('\\iexplore.exe') != -1:
                 editor = None
 
-        if not editor and not win32 and has_tk():
-            from tkSimpleDialog import askstring
-            editor = askstring('Zope External Editor', 
-                               'Enter the command to launch the default editor')
-            if not editor: 
-                sys.exit(0)
-            self.config.set('general', 'editor', editor)
-            self.config.save()
-
         if editor is not None:            
             return editor
         else:



More information about the Zope-CVS mailing list