This commit is contained in:
İsmail Dönmez
2005-11-21 13:26:55 +00:00
parent 4a153d5761
commit d03d50f0d9
+3 -3
View File
@@ -405,7 +405,7 @@ class autoxml(oo.autosuper, oo.autoprop):
if hasattr(self, 'read_hook'):
self.read_hook(errs)
if errs:
errs.append(_("autoxml.read: File '%s' has errors") % filename)
errs.append(_("autoxml.read: File '%s' has errors") % uri)
raise Error(*errs)
if not keepDoc:
@@ -413,7 +413,7 @@ class autoxml(oo.autosuper, oo.autoprop):
errs = self.errors()
if errs:
errs.append(_("autoxml.read: File '%s' has errors") % filename)
errs.append(_("autoxml.read: File '%s' has errors") % uri)
raise Error(*errs)
def write(self, uri, keepDoc = False, tmpDir = '/tmp'):
@@ -428,7 +428,7 @@ class autoxml(oo.autosuper, oo.autoprop):
if hasattr(self, 'write_hook'):
self.write_hook(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)
self.writexml(uri, tmpDir)
if not keepDoc: