@asyncio.coroutine<EOL><INDENT>def handle_list(self, item):<DEDENT>
doc = yield from self.call('<STR_LIT>'+item+'<STR_LIT>', dict(<EOL>maxItems=<NUM_LIT:100>,<EOL>))<EOL>if doc is None:<EOL><INDENT>return []<EOL><DEDENT>if not doc.status == '<STR_LIT>':<EOL><INDENT>return []<EOL><DEDENT>ret = list()<EOL>for index, item in enumerate(list(doc.iterchildren('<STR_LIT>'))):<EOL><INDENT>temp = dict(band=index)<EOL>for field in list(item.iterchildren()):<EOL><INDENT>temp[field.get('<STR_LIT:name>')] = list(field.iterchildren()).pop()<EOL><DEDENT>ret.append(temp)<EOL><DEDENT>return ret<EOL>
Helper method for fetching a list(map) value.