PEATDB/TableModels.py
def auto_AddColumns(self, numcols=None):
        """Automatically add x number of cols"""
        import string
        alphabet = string.lowercase[:26]
        currcols=self.getColumnCount()
        #find where to start
        start = currcols + 1
        end = currcols + numcols + 1
        new = []
        for n in range(start, end):
            new.append(str(n))
        #check if any of these colnames present
        common = set(new) & set(self.columnNames)
        extra = len(common)
        end = end + extra
        for x in range(start, end):
            self.addColumn(str(x))
        return
Automatically add x number of cols
Automatically add x number of cols
Automatically add x number of cols
def auto_AddColumns(self, numcols=None):
        import string
        alphabet = string.lowercase[:26]
        currcols=self.getColumnCount()
        start = currcols + 1
        end = currcols + numcols + 1
        new = []
        for n in range(start, end):
            new.append(str(n))
        common = set(new) & set(self.columnNames)
        extra = len(common)
        end = end + extra
        for x in range(start, end):
            self.addColumn(str(x))
        return
def auto_AddColumns ( self , numcols = None ) : import string alphabet = string . lowercase [ : 26 ] currcols = self . getColumnCount ( ) start = currcols + 1 end = currcols + numcols + 1 new = [ ] for n in range ( start , end ) : new . append ( str ( n ) ) common = set ( new ) & set ( self . columnNames ) extra = len ( common ) end = end + extra for x in range ( start , end ) : self . addColumn ( str ( x ) ) return
Automatically add x number of cols
Automatically add x number of cols
"""Automatically add x number of cols""" #find where to start #check if any of these colnames present
self
numcols