* src/AutoComp.py: switch over entirely to ComboBox for
autocompletion * src/GenericFilter.py: support ComboBox * src/TransTable.py: sort items on getting keys * src/plugins/FilterEditor.py: support ComboBox * src/plugins/SoundGen.py: support ComboBox * src/plugins/soundex.glade: support ComboBox svn: r3346
This commit is contained in:
@@ -1557,15 +1557,17 @@ class GenericFilterList:
|
||||
self.filter_list.append(filter)
|
||||
|
||||
def load(self):
|
||||
try:
|
||||
parser = make_parser()
|
||||
parser.setContentHandler(FilterParser(self))
|
||||
if self.file[0:7] != "file://":
|
||||
parser.parse("file://" + self.file)
|
||||
else:
|
||||
parser.parse(self.file)
|
||||
except (IOError,OSError,SAXParseException):
|
||||
pass
|
||||
try:
|
||||
parser = make_parser()
|
||||
parser.setContentHandler(FilterParser(self))
|
||||
if self.file[0:7] != "file://":
|
||||
parser.parse("file://" + self.file)
|
||||
else:
|
||||
parser.parse(self.file)
|
||||
except (IOError,OSError):
|
||||
pass
|
||||
except SAXParseException:
|
||||
print "Parser error"
|
||||
|
||||
def fix(self,line):
|
||||
l = line.strip()
|
||||
|
||||
Reference in New Issue
Block a user