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

def mago::application::pidgin::pidgin::Pidgin::backup_config (   self  ) 

It saves the configuration of Pidgin in a path
called ~/.purple.bak{.n}

Definition at line 138 of file pidgin.py.

00138                            :
        """
        It saves the configuration of Pidgin in a path
        called ~/.purple.bak{.n}
        """
        p = os.path.expanduser('~/.purple.bak')
        backup_path = p
        i = 2
        while os.path.exists(backup_path):
            backup_path = '%s.%d' % (p, i)
            i += 1
            
        try:
            move(os.path.expanduser('~/.purple'), backup_path)
        except IOError:
            pass
        else:
            self.backup_path = backup_path

    def restore_config(self):


Generated by  Doxygen 1.6.0   Back to index