fakyu
This commit is contained in:
@@ -405,7 +405,7 @@ class autoxml(oo.autosuper, oo.autoprop):
|
|||||||
if hasattr(self, 'read_hook'):
|
if hasattr(self, 'read_hook'):
|
||||||
self.read_hook(errs)
|
self.read_hook(errs)
|
||||||
if errs:
|
if errs:
|
||||||
errs.append(_("autoxml.read: File '%s' has errors") % filename)
|
errs.append(_("autoxml.read: File '%s' has errors") % uri)
|
||||||
raise Error(*errs)
|
raise Error(*errs)
|
||||||
|
|
||||||
if not keepDoc:
|
if not keepDoc:
|
||||||
@@ -413,7 +413,7 @@ class autoxml(oo.autosuper, oo.autoprop):
|
|||||||
|
|
||||||
errs = self.errors()
|
errs = self.errors()
|
||||||
if errs:
|
if errs:
|
||||||
errs.append(_("autoxml.read: File '%s' has errors") % filename)
|
errs.append(_("autoxml.read: File '%s' has errors") % uri)
|
||||||
raise Error(*errs)
|
raise Error(*errs)
|
||||||
|
|
||||||
def write(self, uri, keepDoc = False, tmpDir = '/tmp'):
|
def write(self, uri, keepDoc = False, tmpDir = '/tmp'):
|
||||||
@@ -428,7 +428,7 @@ class autoxml(oo.autosuper, oo.autoprop):
|
|||||||
if hasattr(self, 'write_hook'):
|
if hasattr(self, 'write_hook'):
|
||||||
self.write_hook(errs)
|
self.write_hook(errs)
|
||||||
if errs:
|
if errs:
|
||||||
errs.append(_("autoxml.write: File encoding '%s' has errors") % filename)
|
errs.append(_("autoxml.write: File encoding '%s' has errors") % uri)
|
||||||
raise Error(*errs)
|
raise Error(*errs)
|
||||||
self.writexml(uri, tmpDir)
|
self.writexml(uri, tmpDir)
|
||||||
if not keepDoc:
|
if not keepDoc:
|
||||||
|
|||||||
Reference in New Issue
Block a user