ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/ScriptWriter.py
(Generate patch)

Comparing COMP/CRAB/python/ScriptWriter.py (file contents):
Revision 1.31 by spiga, Tue May 27 14:36:11 2008 UTC vs.
Revision 1.32 by ewv, Thu May 29 19:18:49 2008 UTC

# Line 8 | Line 8 | import Scram
8   import string,os
9  
10   class ScriptWriter:
11 <    def __init__(self, cfg_params, template):
11 >    def __init__(self, cfg_params, template):
12          # pattern -> action
13          self.actions = {
14              'title'                       : self.title_,
15              'untar_software'              : self.untarSoftware_,
16 +            'initial_environment'         : self.initialEnvironment_,
17              'setup_scheduler_environment' : self.setupSchedulerEnvironment_,
18              'setup_jobtype_environment'   : self.setupJobTypeEnvironment_,
19              'copy_input'                  : self.copyInput_,
# Line 46 | Line 47 | class ScriptWriter:
47          self.debug_pset=''
48          debug = cfg_params.get('USER.debug_pset',False)
49          if debug: self.debug_pset='--debug'
50 <
50 >
51          return
52  
53      def setAction(self, pattern, action):
# Line 113 | Line 114 | class ScriptWriter:
114          txt = common.scheduler.wsSetupEnvironment()
115          return txt
116  
117 +    def initialEnvironment_(self):
118 +        """
119 +        Returns part of a job script which does scheduler-specific work.
120 +        """
121 +        txt = common.scheduler.wsInitialEnvironment()
122 +        return txt
123 +
124      def setupJobTypeEnvironment_(self):
125          """
126          Returns part of a job script which does jobtype-specific work.
# Line 192 | Line 200 | class ScriptWriter:
200  
201      def func_exit_(self):
202          """
203 <        Returns part of a job script which does scheduler-specific
203 >        Returns part of a job script which does scheduler-specific
204          output checks and management.
205          """
206          txt = common.scheduler.wsExitFunc()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines