Last change
on this file since 6021 was
6021,
checked in by ldelgass, 9 years ago
|
Merge UQ and fixes from 1.4 branch
|
File size:
937 bytes
|
Line | |
---|
1 | # ---------------------------------------------------------------------- |
---|
2 | # EXAMPLE: Rappture <string> elements |
---|
3 | # ====================================================================== |
---|
4 | # AUTHOR: Martin Hunt, Purdue University |
---|
5 | # Copyright (c) 2015 HUBzero Foundation, LLC |
---|
6 | # |
---|
7 | # See the file "license.terms" for information on usage and |
---|
8 | # redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
---|
9 | # ====================================================================== |
---|
10 | |
---|
11 | import Rappture |
---|
12 | import sys |
---|
13 | |
---|
14 | # open the XML file containing the run parameters |
---|
15 | rx = Rappture.PyXml(sys.argv[1]) |
---|
16 | |
---|
17 | title = rx['input.(title).current'].value |
---|
18 | indeck = rx['input.(indeck).current'].value |
---|
19 | |
---|
20 | rx['output.string(outt).about.label'] = "Echo of title" |
---|
21 | rx['output.string(outt).current'] = title |
---|
22 | rx['output.string(outi).about.label'] = "Echo of input" |
---|
23 | rx['output.string(outi).current'] = indeck |
---|
24 | |
---|
25 | # save the updated XML describing the run... |
---|
26 | rx.close() |
---|
Note: See
TracBrowser
for help on using the repository browser.