From: Jean-Philippe ARGAUD Date: Wed, 19 Apr 2017 19:45:58 +0000 (+0200) Subject: Correction of ADAO TUI Python dump X-Git-Tag: V8_3_0rc1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=28e373b8fda4d6bb15918bdfde2dcec23cf00cda;p=modules%2Fadao.git Correction of ADAO TUI Python dump --- diff --git a/src/daSalome/adaoBuilder.py b/src/daSalome/adaoBuilder.py index 8d52403..4bb5cb4 100644 --- a/src/daSalome/adaoBuilder.py +++ b/src/daSalome/adaoBuilder.py @@ -615,7 +615,7 @@ class _TUIViewer(_GenericViewer): for command in __content: self._append(*command) def _append(self, __command=None, __keys=None, __local=None, __pre=None, __switchoff=False): - if __command is not None and __keys is not None and __local is not None and not self._switchoff: + if __command is not None and __keys is not None and __local is not None: __text = "" if __pre is not None: __text += "%s = "%__pre @@ -624,13 +624,11 @@ class _TUIViewer(_GenericViewer): for k in __keys: __v = __local[k] if __v is None: continue + if k == "Checked" and not __v: continue + if k == "Stored" and not __v: continue __text += "%s=%s, "%(k,repr(__v)) __text += ")" self._addLine(__text) - if __switchoff: - self._switchoff = True - if not __switchoff: - self._switchoff = False def dump(self, __filename=None): __text = "\n".join(self._lineSerie) if __filename is not None: