def _get_options_for_key(key, optiondict):
    ids = key.split('__')
    opts = []
    for work in ids:
        grpid, optid = work.split('_')
        try:
            opts.append(optiondict[int(grpid)][int(optid)])
        except __HOLE__:
            log.warn('Could not find option for group id=%s, option id=%s', grpid, optid)
    return opts
dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/product/forms.py/_get_options_for_key