def get_items_for_client(tiids, myrefsets, myredis, most_recent_metric_date=None, most_recent_diff_metric_date=None):
    item_metric_dicts = get_readonly_item_metric_dicts(tiids, most_recent_metric_date, most_recent_diff_metric_date)

    dict_of_item_docs = {}
    for tiid in item_metric_dicts:
        try:
            item_doc_for_client = item_module.build_item_for_client(item_metric_dicts[tiid], myrefsets, myredis)
            dict_of_item_docs[tiid] = item_doc_for_client
        except (KeyError, __HOLE__, AttributeError):
            logger.info(u"Couldn't build item {tiid}".format(tiid=tiid))
            raise
    
    return dict_of_item_docs
dataset/ETHPy150Open Impactstory/total-impact-core/totalimpact/collection.py/get_items_for_client