aboutsummaryrefslogtreecommitdiff
path: root/steuermann/nodes.py
diff options
context:
space:
mode:
authorsienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d>2011-09-16 18:10:14 -0400
committersienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d>2011-09-16 18:10:14 -0400
commitacedd0fe3b909516fa83ae14b4c4f731641eb4b3 (patch)
treefe2aabec83ade1ca63d61b96b44b2466add1e504 /steuermann/nodes.py
parentc7651f9727404b1ac6da1714aaeee7d55fe08222 (diff)
downloadsteuermann-acedd0fe3b909516fa83ae14b4c4f731641eb4b3.tar.gz
checkpoint
git-svn-id: https://svn.stsci.edu/svn/ssb/etal/steuermann/trunk@421 d34015c8-bcbb-4646-8ac8-8ba5febf221d
Diffstat (limited to 'steuermann/nodes.py')
-rw-r--r--steuermann/nodes.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/steuermann/nodes.py b/steuermann/nodes.py
index dfdb6d7..0173793 100644
--- a/steuermann/nodes.py
+++ b/steuermann/nodes.py
@@ -81,7 +81,7 @@ class command_tree(object):
def add_command_list( self, table, hostlist, command_list ) :
for host in hostlist :
this_table = '%s:%s' % ( host, table )
- for command, script, after_clause, pos in command_list :
+ for command, script, script_type, after_clause, pos in command_list :
# this happens once for each CMD clause
# command is the name of this command
# script is the script to run
@@ -95,7 +95,7 @@ class command_tree(object):
print "# warning: %s already used on line %s"%(command,self.node_index[command].input_line)
# create the node
- self.node_index[command]=node(command, script, nice_pos( current_file_name, pos) )
+ self.node_index[command]=node(command, script, script_type, nice_pos( current_file_name, pos) )
for before_name, required, pos in after_clause :
# this happens once for each AFTER clause
@@ -178,12 +178,13 @@ def wildcard_name( wild, name ) :
# true if the before node is finished running.
#
class node(object) :
- def __init__(self, name, script, input_line) :
+ def __init__(self, name, script, script_type, input_line) :
# the fully qualified name of the node
self.name = name
# the command script that this node runs
self.script = script
+ self.script_type = script_type
# what line of the input file specified this node; this is
# a string of the form "foo.bar 123"