def get_row(modelclass, rowid):
    try:
        dbrow = dbsession.query(modelclass).get(int(rowid))
        if dbrow is None:
            raise framework.HttpErrorNotFound("No such id.")
    except __HOLE__:
            raise framework.HttpErrorNotFound("Bad id value.")
    return dbrow
dataset/ETHPy150Open kdart/pycopia/storage/pycopia/db/webhelpers.py/get_row