

def get_row(modelclass, rowid):
    try:
        dbrow = dbsession.query(modelclass).get(int(dbrow))
        if (dbrow is None):
            raise framework.HttpErrorNotFound('No such id.')
    except ValueError:
        raise framework.HttpErrorNotFound('Bad id value.')
    return dbrow

dataset/ETHPy150Open kdart/pycopia/storage/pycopia/db/webhelpers.py get_row/VarMisuse@29/38 `rowid`->`dbrow`