Filter problems reported by Bernd Schandl
svn: r924
This commit is contained in:
parent
1160824464
commit
641bc9b7d4
@ -760,7 +760,7 @@ class FilterParser(handler.ContentHandler):
|
|||||||
pass
|
pass
|
||||||
self.gfilter_list.add(self.f)
|
self.gfilter_list.add(self.f)
|
||||||
elif tag == "rule":
|
elif tag == "rule":
|
||||||
name = attrs['class']
|
name = _(attrs['class'])
|
||||||
self.a = []
|
self.a = []
|
||||||
self.cname = tasks[name]
|
self.cname = tasks[name]
|
||||||
elif tag == "arg":
|
elif tag == "arg":
|
||||||
@ -774,6 +774,12 @@ class FilterParser(handler.ContentHandler):
|
|||||||
def characters(self, data):
|
def characters(self, data):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
SystemFilters = None
|
SystemFilters = None
|
||||||
CustomFilters = None
|
CustomFilters = None
|
||||||
|
|
||||||
|
@ -35,12 +35,12 @@ filters, importer, exporters, and document generators.
|
|||||||
import GdkImlib
|
import GdkImlib
|
||||||
import gtk
|
import gtk
|
||||||
import libglade
|
import libglade
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Standard Python modules
|
# Standard Python modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
import traceback
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
from re import compile
|
from re import compile
|
||||||
@ -245,9 +245,9 @@ class PluginStatus:
|
|||||||
error = str(msgs[0])
|
error = str(msgs[0])
|
||||||
if error[0:11] == "exceptions.":
|
if error[0:11] == "exceptions.":
|
||||||
error = error[11:]
|
error = error[11:]
|
||||||
msg = msgs[1]
|
info.write("%s\t%s\n" % (file,error) )
|
||||||
info.write("%s\n\t%s: %s\n\n" % (file,error,msg) )
|
traceback.print_exception(msgs[0],msgs[1],msgs[2],None,info)
|
||||||
|
info.write('\n')
|
||||||
info.seek(0)
|
info.seek(0)
|
||||||
window.show_string(info.read())
|
window.show_string(info.read())
|
||||||
self.top.run_and_close()
|
self.top.run_and_close()
|
||||||
|
@ -1019,10 +1019,10 @@ class DrawReportDialog(ReportDialog):
|
|||||||
self.doc = self.format(self.selected_style,self.paper,self.orien)
|
self.doc = self.format(self.selected_style,self.paper,self.orien)
|
||||||
|
|
||||||
class TemplateParser(handler.ContentHandler):
|
class TemplateParser(handler.ContentHandler):
|
||||||
def __init__(self,data,path):
|
def __init__(self,data,fpath):
|
||||||
handler.ContentHandler.__init__(self)
|
handler.ContentHandler.__init__(self)
|
||||||
self.data = data
|
self.data = data
|
||||||
self.path = path
|
self.path = fpath
|
||||||
|
|
||||||
def setDocumentLocator(self,locator):
|
def setDocumentLocator(self,locator):
|
||||||
self.locator = locator
|
self.locator = locator
|
||||||
|
@ -381,7 +381,7 @@ register_tool(
|
|||||||
category=_("Utilities"),
|
category=_("Utilities"),
|
||||||
description=_("The Custom Filter Editor builds custom "
|
description=_("The Custom Filter Editor builds custom "
|
||||||
"filters that can be used to select people "
|
"filters that can be used to select people "
|
||||||
"included reports, exports, and other utilities.")
|
"included in reports, exports, and other utilities.")
|
||||||
)
|
)
|
||||||
|
|
||||||
if ((os.path.exists(const.system_filters) and
|
if ((os.path.exists(const.system_filters) and
|
||||||
|
Loading…
Reference in New Issue
Block a user