PEATDB/TableModels.py
def addRecord(self, name, **kwargs):
        """Add new rec with all fields in kwargs dict"""
        #name = kwargs[kwargs.keys()[0]]
        self.addRow(name) 
        self.addColumn('name')
        self.data[name]['name'] = name          
        for k in kwargs:            
            if not k in self.columnNames:
                self.addColumn(k)
            self.data[name][k] = str(kwargs[k])
        return
Add new rec with all fields in kwargs dict
Add new rec with all fields in kwargs dict
Add new rec with all fields in kwargs dict
def addRecord(self, name, **kwargs):
        self.addRow(name) 
        self.addColumn('name')
        self.data[name]['name'] = name          
        for k in kwargs:            
            if not k in self.columnNames:
                self.addColumn(k)
            self.data[name][k] = str(kwargs[k])
        return
def addRecord ( self , name , ** kwargs ) : self . addRow ( name ) self . addColumn ( 'name' ) self . data [ name ] [ 'name' ] = name for k in kwargs : if not k in self . columnNames : self . addColumn ( k ) self . data [ name ] [ k ] = str ( kwargs [ k ] ) return
Add new rec with all fields in kwargs dict
Add new rec with all fields in kwargs dict
"""Add new rec with all fields in kwargs dict""" #name = kwargs[kwargs.keys()[0]]
self
name