@classmethod
def usable_id(cls, id):
    """ Retrieve id from input which can be num or id."""
    try:
        qry_id = int(id)
    except Exception:
        qry_id = None
    if not qry_id:
        msg = 'unknown identifier %s' % id
        cls.error(msg)
    return qry_id
