(self, profile, newname)
Rename a profile
Rename a profile
Rename a profile
def rename_profile(self, profile, newname):
        """Rename a profile"""
        if profile in self.base.profiles:
            self.base.profiles[newname] = self.base.profiles[profile]
            del(self.base.profiles[profile])
            if profile == self.profile:
                self.profile = newname
def rename_profile ( self , profile , newname ) : if profile in self . base . profiles : self . base . profiles [ newname ] = self . base . profiles [ profile ] del ( self . base . profiles [ profile ] ) if profile == self . profile : self . profile = newname