PEATDB/TableModels.py
def createEmptyModel(self):
        """Create the basic empty model dict"""
        self.data = {}
        # Define the starting column names and locations in the table.
        self.columnNames = []
        self.columntypes = {}
        self.columnOrder = None
        #record column labels for use in a table header
        self.columnlabels={}
        for colname in self.columnNames:
            self.columnlabels[colname]=colname
        self.reclist = self.data.keys()
        return
Create the basic empty model dict
Create the basic empty model dict
Create the basic empty model dict
def createEmptyModel(self):
        self.data = {}
        self.columnNames = []
        self.columntypes = {}
        self.columnOrder = None
        self.columnlabels={}
        for colname in self.columnNames:
            self.columnlabels[colname]=colname
        self.reclist = self.data.keys()
        return
def createEmptyModel ( self ) : self . data = { } self . columnNames = [ ] self . columntypes = { } self . columnOrder = None self . columnlabels = { } for colname in self . columnNames : self . columnlabels [ colname ] = colname self . reclist = self . data . keys ( ) return
Create the basic empty model dict
Create the basic empty model dict
"""Create the basic empty model dict""" # Define the starting column names and locations in the table. #record column labels for use in a table header
self