def pkey(rowclass, values):
    """return a where-dict for the rowclass given values"""
    if len(rowclass.PKEY) != len(values):
        raise ValueError('length mismatch', rowclass.PKEY, values)
    return dict(zip(rowclass.PKEY, values))
