Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > a149b8f06a7d8c73bbebc863c09012d6 > files > 4

zope-ExternalEditor-0.9.3-2mdv2008.0.src.rpm

diff -rc ExternalEditor/zopeedit.py ExternalEditor.patch/zopeedit.py
*** ExternalEditor/zopeedit.py	2005-03-04 14:08:41.676074120 +0100
--- ExternalEditor.patch/zopeedit.py	2005-03-04 14:08:55.607956152 +0100
***************
*** 98,103 ****
--- 98,107 ----
                      config_path = global_config
              else:
                  config_path = os.path.expanduser('~/.zope-external-edit')
+                 global_config = '/etc/ZopeEdit.ini'
+                 if not os.path.exists(config_path) \
+                    and os.path.exists(global_config):
+                     os.system("cp %s %s" % (global_config, config_path))
                  
              self.config = Configuration(config_path)