Beispiel #1
0
def doQuery(query, fields):
    # this just returns 40 rows of data from the portal...
    import demodata

    data = demodata.sampledata()
    rows = []
    for d in data:
        row = {}
        for field in fields:
            if field in d:
                row[field] = d[field]
        rows.append(row)
    data = rows

    return data
Beispiel #2
0
def doQuery(query, fields):
    # this just returns 40 rows of data from the portal...
    import demodata

    data = demodata.sampledata()
    rows = []
    for d in data:
        row = {}
        for field in fields:
            if field in d:
                row[field] = d[field]
        rows.append(row)
    data = rows

    return data
def doQuery(request, fields):
    # this just returns 40 rows of data from the portal...
    import demodata

    data = demodata.sampledata()
    rows = []
    for d in data:
        row = []
        for field in fields:
            if field in d:
                row.append(d[field])
            else:
                row.append('')
        rows.append(row)
    data = rows

    return data
def doDemoQuery(query, fields):
    # this just returns 40 rows of data from the portal...
    import demodata

    data = demodata.sampledata()
    rows = []
    for d in data:
        row = []
        for field in fields:
            if field in d:
                row.append(d[field])
            else:
                row.append('')
        cells = {'csid': d['csid_s'], 'cells': row}
        rows.append(cells)
    data = rows

    return data
Beispiel #5
0
def doDemoQuery(query, fields):
    # this just returns 40 rows of data from the portal...
    import demodata

    data = demodata.sampledata()
    rows = []
    for d in data:
        row = []
        for field in fields:
            if field in d:
                row.append(d[field])
            else:
                row.append('')
        cells = {'csid': d['csid_s'], 'cells': row}
        rows.append(cells)
    data = rows

    return data