sets the config values from a parsed config file to values in destination
(self, config, dest)
| 199 | |
| 200 | |
| 201 | def updateValues(self, config, dest): |
| 202 | """sets the config values from a parsed config file to values in destination""" |
| 203 | |
| 204 | for section in config.iterkeys(): |
| 205 | if section in dest: |
| 206 | for option in config[section].iterkeys(): |
| 207 | if option in ("desc", "outline"): continue |
| 208 | |
| 209 | if option in dest[section]: |
| 210 | dest[section][option]["value"] = config[section][option]["value"] |
| 211 | |
| 212 | #else: |
| 213 | # dest[section][option] = config[section][option] |
| 214 | |
| 215 | |
| 216 | #else: |
| 217 | # dest[section] = config[section] |
| 218 | |
| 219 | def saveConfig(self, config, filename): |
| 220 | """saves config to filename""" |