Logo Search packages:      
Sourcecode: sabayon version File versions  Download package

def lib::sources::gconfsource::GConfSource::commit_change (   self,
  change,
  mandatory = False 
)

Commit a GConf change to the profile.

Reimplemented from lib::userprofile::ProfileSource.

Definition at line 170 of file gconfsource.py.

00170                                                        :
        """Commit a GConf change to the profile."""
        if userprofile.ProfileSource.commit_change (self, change, mandatory):
            return
        
        (client, address) = self.get_committing_client_and_address (mandatory)

        dprint ("Committing change to '%s' to '%s'", change.key, address)
        
        if change.value:
            client.set (change.key, change.value)
        else:
            client.unset (change.key)

        # Make sure to unset the other sabayon gconf database, as we may be changing
        # the key from mandatory to non-mandatory
        (client, address) = self.get_committing_client_and_address (not mandatory)
        client.unset (change.key)
        
    def start_monitoring (self):


Generated by  Doxygen 1.6.0   Back to index