(self, newname, rowIndex)
return
Set the record name to another value - requires re-setting in all
           dicts that this rec is referenced
Set the record name to another value - requires re-setting in all
           dicts that this rec is referenced
Set the record name to another value - requires re - setting in all dicts that this rec is referenced
def setRecName(self, newname, rowIndex):
        """Set the record name to another value - requires re-setting in all
           dicts that this rec is referenced"""

        if len(self.reclist)==0:
            return None
        currname = self.getRecName(rowIndex)
        self.reclist[rowIndex] = newname
        temp = copy.deepcopy(self.data[currname])
        self.data[newname] = temp
        #self.data[newname]['Name'] = newname
        del self.data[currname]
        for key in ['bg', 'fg']:
            if currname in self.colors[key]:
                temp = copy.deepcopy(self.colors[key][currname])
                self.colors[key][newname] = temp
                del self.colors[key][currname]
        print ('renamed')
        #would also need to resolve all refs to this rec in formulas here!

        return
def setRecName ( self , newname , rowIndex ) : if len ( self . reclist ) == 0 : return None currname = self . getRecName ( rowIndex ) self . reclist [ rowIndex ] = newname temp = copy . deepcopy ( self . data [ currname ] ) self . data [ newname ] = temp #self.data[newname]['Name'] = newname del self . data [ currname ] for key in [ 'bg' , 'fg' ] : if currname in self . colors [ key ] : temp = copy . deepcopy ( self . colors [ key ] [ currname ] ) self . colors [ key ] [ newname ] = temp del self . colors [ key ] [ currname ] print ( 'renamed' ) #would also need to resolve all refs to this rec in formulas here! return