From 8c7c6e3656fe07995eda88a3ea8aab3d8c39d2eb Mon Sep 17 00:00:00 2001 From: eficas <> Date: Mon, 14 Mar 2005 13:44:10 +0000 Subject: [PATCH] changement de signature de la methode convert --- convert/convert_asterv5.py | 2 +- convert/convert_homard.py | 2 +- convert/convert_ini.py | 2 +- convert/convert_pyth.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/convert/convert_asterv5.py b/convert/convert_asterv5.py index 036e23d2..bf13ea13 100644 --- a/convert/convert_asterv5.py +++ b/convert/convert_asterv5.py @@ -93,7 +93,7 @@ class AsterParser: self.cr.fatal("Impossible ouvrir fichier %s" % filename) return - def convert(self,outformat): + def convert(self,outformat,appli=None): if outformat == 'exec': return self.getexec() elif outformat == 'execnoparseur': diff --git a/convert/convert_homard.py b/convert/convert_homard.py index f03a6f0d..646504b1 100644 --- a/convert/convert_homard.py +++ b/convert/convert_homard.py @@ -103,7 +103,7 @@ class PythonParser: self.cr.fatal("Impossible ouvrir fichier %s" % filename) return - def convert(self,outformat): + def convert(self,outformat,appli=None): if outformat == 'exec': try: return parseur_python.PARSEUR_PYTHON(self.text).get_texte() diff --git a/convert/convert_ini.py b/convert/convert_ini.py index 59eb804d..c8439f66 100644 --- a/convert/convert_ini.py +++ b/convert/convert_ini.py @@ -78,7 +78,7 @@ class IniParser(ConfigParser): except Exception,e: self.cr.fatal(str(e)) - def convert(self,outformat): + def convert(self,outformat,appli=None): if outformat == 'eval': return self.getdicttext() elif outformat == 'dict': diff --git a/convert/convert_pyth.py b/convert/convert_pyth.py index b770c378..a056bb21 100644 --- a/convert/convert_pyth.py +++ b/convert/convert_pyth.py @@ -107,7 +107,7 @@ class PythParser: s= string.replace(s,'""','"<%s>"'%self.filename) self.cr.fatal("Erreur a l'evaluation :\n" + s) - def convert(self,outformat): + def convert(self,outformat,appli=None): if outformat == 'dict': return self.getdict() else: -- 2.39.2