def conflicting_filename(filename, value=False):
    confs = plug.service_db.range('conflict:')
    # Remove the leading 'conflict:' substring
    # do str(o_fn) to manage Python 3
    confs = [(str(o_fn).split(u':', 1)[1], d_fn) for (o_fn, d_fn) in confs]
    conflict_name = None
    # 0 = Onitu filename; 1 = Dropbox filename
    if value:
        searched = 1
    else:
        searched = 0
    for filenames in confs:
        if filenames[searched] == filename:
            conflict_name = filenames[int(not searched)]
            plug.logger.warning(u"Case conflict on Dropbox, mapping "
                                u"modifications of file {} to "
                                u"file {}, please rename it!"
                                .format(u(filename), u(conflict_name)))
            break
    return conflict_name
Return True if answer is a valid response to question, False if not.
dataset/ETHPy150Open onitu/onitu/drivers/dropbox/onitu_dropbox/dropbox_driver.py/conflicting_filename--crossover with--dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/ivr/api.py/validate_answer