X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=test%2FVisuPrs%2Fdump_study%2FB4.py;h=a0425170546cc08a3485eda172eaef3cc5abb271;hb=937b15c6a43ec7efea52bd90272e2e35d89ab37b;hp=80556bd5de46a58488410f84544740c6f31a9a1d;hpb=38700ef6e95fe8e0812fd1e0c63844022889ed64;p=modules%2Fparavis.git diff --git a/test/VisuPrs/dump_study/B4.py b/test/VisuPrs/dump_study/B4.py index 80556bd5..a0425170 100644 --- a/test/VisuPrs/dump_study/B4.py +++ b/test/VisuPrs/dump_study/B4.py @@ -1,4 +1,4 @@ -# Copyright (C) 2010-2015 CEA/DEN, EDF R&D +# Copyright (C) 2010-2016 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -22,6 +22,13 @@ import paravistest from presentations import * from pvsimple import * +from paravistest import save_trace +from paraview import smtrace + +config = smtrace.start_trace() +config.SetFullyTraceSupplementalProxies(True) +config.SetPropertiesToTraceOnCreate(config.RECORD_ALL_PROPERTIES) + # 1. Table creation title = "My Table" @@ -69,8 +76,9 @@ table.UpdatePipeline() orig_script = table.Script # 2. Dump Study +text = smtrace.stop_trace() path_to_save = os.path.join(os.getenv("HOME"), "table.py") -SaveTrace(path_to_save) +save_trace( path_to_save, text ) # 3. Delete the table Delete(table)