(self, colnames, filters=None)
return data
Get the model data as a dict for given columns with filter options
Get the model data as a dict for given columns with filter options
Get the model data as a dict for given columns with filter options
def getDict(self, colnames, filters=None):
        """Get the model data as a dict for given columns with filter options"""
        data={}
        names = self.reclist
        cols = self.getColumns(colnames, filters)
        coldata = zip(*cols)
        for name,cdata in zip(names, coldata):
            data[name] = dict(zip(colnames,cdata))
        return data
def getDict ( self , colnames , filters = None ) : data = { } names = self . reclist cols = self . getColumns ( colnames , filters ) coldata = zip ( * cols ) for name , cdata in zip ( names , coldata ) : data [ name ] = dict ( zip ( colnames , cdata ) ) return data