@CachedAttribute<EOL><INDENT>def _legislator_objects(self):<DEDENT>
kwargs = {}<EOL>id_getter = operator.itemgetter('<STR_LIT>')<EOL>ids = []<EOL>for k in ('<STR_LIT:yes>', '<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>ids.extend(map(id_getter, self[k + '<STR_LIT>']))<EOL><DEDENT>objs = db.legislators.find({'<STR_LIT>': {'<STR_LIT>': ids}}, **kwargs)<EOL>objs = list(objs)<EOL>id_cache = {}<EOL>for obj in objs:<EOL><INDENT>obj.vote = self<EOL>for _id in obj['<STR_LIT>']:<EOL><INDENT>id_cache[_id] = obj<EOL><DEDENT><DEDENT>return id_cache<EOL>
A cache of dereferenced legislator objects.