Salome HOME
projects
/
modules
/
paravis.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set dev version marker to 1.
[modules/paravis.git]
/
test
/
VisuPrs
/
dump_study
/
B4.py
diff --git
a/test/VisuPrs/dump_study/B4.py
b/test/VisuPrs/dump_study/B4.py
index a5c75e493f9089e8620c8a0080ae701bf312a3e5..a0425170546cc08a3485eda172eaef3cc5abb271 100644
(file)
--- a/
test/VisuPrs/dump_study/B4.py
+++ b/
test/VisuPrs/dump_study/B4.py
@@
-1,4
+1,4
@@
-# Copyright (C) 2010-201
4
CEA/DEN, EDF R&D
+# Copyright (C) 2010-201
6
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
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@
-21,10
+21,14
@@
import paravistest
from presentations import *
import paravistest
from presentations import *
-import paravis
from pvsimple 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)
-my_paravis = paravis.myParavis
# 1. Table creation
title = "My Table"
# 1. Table creation
title = "My Table"
@@
-72,8
+76,9
@@
table.UpdatePipeline()
orig_script = table.Script
# 2. Dump Study
orig_script = table.Script
# 2. Dump Study
+text = smtrace.stop_trace()
path_to_save = os.path.join(os.getenv("HOME"), "table.py")
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)
# 3. Delete the table
Delete(table)
@@
-90,6
+95,6
@@
if table.Script != orig_script:
print "ERROR!!! The script value is incorrect:"
print table.Script
errors += 1
print "ERROR!!! The script value is incorrect:"
print table.Script
errors += 1
-
+
if errors > 0:
raise RuntimeError, "There is(are) some error(s) was(were) found... For more info see ERRORs above..."
if errors > 0:
raise RuntimeError, "There is(are) some error(s) was(were) found... For more info see ERRORs above..."