From ffb84fb48609abecfa92437dac05112358e8f18e Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Fri, 14 Mar 2003 17:56:14 +0000 Subject: [PATCH] Workaround (hopefully) for bug in older versions of python (reported by Stephen Watson). git-svn-id: https://rox.svn.sourceforge.net/svnroot/rox/trunk/MIME-Editor@2569 66de3db3-b00d-0410-b41b-f4738ad19bea --- AppInfo.xml | 2 +- Help/Changes | 5 +++++ fields.py | 3 ++- override.py | 3 ++- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/AppInfo.xml b/AppInfo.xml index e54b9b9..6810049 100644 --- a/AppInfo.xml +++ b/AppInfo.xml @@ -4,7 +4,7 @@ MIME database editor Thomas Leonard - 0.1.0 PREVIEW + 0.1.0 (14-Mar-2003) GNU General Public License http://rox.sourceforge.net diff --git a/Help/Changes b/Help/Changes index 423fc05..c1d497f 100644 --- a/Help/Changes +++ b/Help/Changes @@ -2,6 +2,11 @@ Editor for the Shared MIME Database by Thomas Leonard +14-Mar-2003 +~~~~~~~~~~~ +Workaround (hopefully) for bug in older versions of python (reported by +Stephen Watson). + 12-Mar-2003 ~~~~~~~~~~~ Applied some fixes caused by the code tidying (Christopher Arndt). diff --git a/fields.py b/fields.py index a024688..f1efafb 100644 --- a/fields.py +++ b/fields.py @@ -170,7 +170,8 @@ class Glob(Field): "? - any one character\n" "* - zero or more characters\n" "[abc] - any character between the brackets\n" - "Example: '*.html' matches all files ending in '.html'"), + "Example: '*.html' matches all files ending in '.html'\n" + "(or '.HTML', etc)"), False, True, 0) self.entry = g.Entry() self.entry.set_text(self.item) diff --git a/override.py b/override.py index ebd3983..9628840 100644 --- a/override.py +++ b/override.py @@ -15,7 +15,8 @@ def get_override(): doc = minidom.Document() node = doc.createElementNS(FREE_NS, 'mime-info') doc.appendChild(node) - node.setAttributeNS(XMLNS_NAMESPACE, 'xmlns', FREE_NS) + # Some versions of PyXML lose the namespace? + doc.documentElement.setAttributeNS(XMLNS_NAMESPACE, 'xmlns', FREE_NS) return doc def get_override_type(type_name): -- 2.11.4.GIT