def METHOD_NAME(self, timestamp, opnum, dn, method, mech='SIMPLE'):
    retval = None
    if opnum in self.ops: # result came before request?
        op = self.ops.pop(opnum) # grab the op and remove from list
        if op[RES]['errnum'] in ignore_errors: # don't care about this op
            return retval
        if not mech: mech = "SIMPLE"
        op[REQ] = {'dn': dn, 'method': method, 'timestamp': timestamp,
                   'mech': mech}
        retval = self.logstr(opnum, op)
    else: # store request until we get the result
        op = [None, None] # new empty list
        if not mech: mech = "SIMPLE"
        op[REQ] = {'dn': dn, 'method': method, 'timestamp': timestamp,
                   'mech': mech}
        self.ops[opnum] = op
    return retval