https://bugs.gpodder.org/show_bug.cgi?id=1498
--- Comment #4 from Thomas Perl <[email protected]> 2012-01-09 12:43:26 GMT --- (In reply to comment #2) > Adding new values isn't possible at the moment. Here is the error-message: > [...] > >> it should be old_value = target_dict.get(attr, None) The fix is now in the master-3.1-configmodule branch. It's rebased against master, so you have to do a forced pull. (In reply to comment #3) > There it should be possible to add configurations during the runtime. But it's > not possible to define all key names directly in the source-code: > > >>> self.config.extensions.variable1.variable2 = value > > the value of variable1 and variable2 and not the names itself should be used > as > configuration names. So maybe we need something like > > >>> self.config.extensions[variable1][variable2] = value > > or a specific method to add the configuration before assigning the value > > >>> self.config.extensions.add_key(variable1) > >>> self.config.extensions.variable1.add_key(variable2) > >>> self.config.extensions.variable1.variable2 = value I'll attach an example of the usage - maybe it wasn't clear from just the code alone. I also added some convenience functions that should help :) -- Configure bugmail: https://bugs.gpodder.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes. _______________________________________________ gPodder-Bugs mailing list [email protected] https://lists.berlios.de/mailman/listinfo/gpodder-bugs
