equal
deleted
inserted
replaced
335 # import locally, show_diffs unavailable in gae environment |
335 # import locally, show_diffs unavailable in gae environment |
336 from cubicweb.toolsutils import show_diffs |
336 from cubicweb.toolsutils import show_diffs |
337 configfile = self.config.main_config_file() |
337 configfile = self.config.main_config_file() |
338 if self._option_changes: |
338 if self._option_changes: |
339 read_old_config(self.config, self._option_changes, configfile) |
339 read_old_config(self.config, self._option_changes, configfile) |
340 newconfig = tempfile.mkstemp() |
340 _, newconfig = tempfile.mkstemp() |
341 for optdescr in self._option_changes: |
341 for optdescr in self._option_changes: |
342 if optdescr[0] == 'added': |
342 if optdescr[0] == 'added': |
343 optdict = self.config.get_option_def(optdescr[1]) |
343 optdict = self.config.get_option_def(optdescr[1]) |
344 if optdict.get('default') is REQUIRED: |
344 if optdict.get('default') is REQUIRED: |
345 self.config.input_option(optdescr[1], optdict) |
345 self.config.input_option(optdescr[1], optdict) |