ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/JSOC/localize.py
(Generate patch)

Comparing localize.py (file contents):
Revision 1.21 by arta, Wed Jul 30 18:31:16 2014 UTC vs.
Revision 1.22 by arta, Thu Sep 11 16:54:15 2014 UTC

# Line 95 | Line 95 | PY_FXNS_B = """    def get(self, name):
95              return None
96   """
97  
98 + PY_FXNS_C = """    def getBool(self, name):
99 +        if name in self.params:
100 +            return bool(self.params[name] == '1')
101 +        else:
102 +            return None
103 + """
104 +
105 +
106   SUMRM_COMMENT = """# This is the configuration file for the sum_rm program. It was auto-generated by the DRMS master configure script.
107   # It controls the behavior of the sum_rm program, and is loaded each time sum_rm runs. To change the
108   # parameter values in this configuration file, modify config.local, then re-run configure. This configuration
# Line 814 | Line 822 | def writeParamsFiles(base, cfile, mfile,
822              print(PY_FXNS_A, file=pyout, end='')
823              print(''.join(pyInitSection), file=pyout)
824              print(PY_FXNS_B, file=pyout)
825 +            print(PY_FXNS_C, file=pyout)
826  
827      except IOError as exc:
828          type, value, traceback = sys.exc_info()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines