Comment 4 for bug 1244493

Revision history for this message
Bruno Nova (brunonova) wrote :

I've been poking around in the code and here's what I found until now:

In file softwarecenter/config.py:

* In the write(self) method, the configuration properties always have the values that are read from the config file (at least for boolean properties) and, thus, the config file contents are not changed on save.
  The method works correctly though: If I call 'self._generic_setbool("recommender_opt_in_requested", True)' manually, it takes effect and that value is written to the config file.

* I added some LOG messages to the methods _generic_get, _generic_set, _generic_getbool and _generic_setbool to see if they are called.
  The get methods are called several times, while the set methods are NEVER called! This here may be the problem!