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 |
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() |