(self)
return data
Return the current data for saving
Return the current data for saving
Return the current data for saving
def getData(self):
        """Return the current data for saving"""

        data = copy.deepcopy(self.data)
        data['colors'] = self.colors
        data['columnnames'] = self.columnNames
        #we keep original record order
        data['reclist'] = self.reclist
        #record current col order
        data['columnorder']={}
        i=0
        for name in self.columnNames:
            data['columnorder'][i] = name
            i=i+1
        data['columntypes'] = self.columntypes
        data['columnlabels'] = self.columnlabels
        return data
def getData ( self ) : data = copy . deepcopy ( self . data ) data [ 'colors' ] = self . colors data [ 'columnnames' ] = self . columnNames #we keep original record order data [ 'reclist' ] = self . reclist #record current col order data [ 'columnorder' ] = { } i = 0 for name in self . columnNames : data [ 'columnorder' ] [ i ] = name i = i + 1 data [ 'columntypes' ] = self . columntypes data [ 'columnlabels' ] = self . columnlabels return data