def _create_import_log(items):
log = []<EOL>for item in items:<EOL><INDENT>if isinstance(item, MetadataFile):<EOL><INDENT>log.append(<EOL>"<STR_LIT>" % item.filename<EOL>)<EOL><DEDENT>elif isinstance(item, EbookFile):<EOL><INDENT>log.append(<EOL>"<STR_LIT>" % item.filename<EOL>)<EOL><DEDENT>elif isinstance(item, DataPair):<EOL><INDENT>meta = item.metadata_file.filename<EOL>data = item.ebook_file.filename<EOL>log.extend([<EOL>"<STR_LIT>",<EOL>"<STR_LIT>" % meta,<EOL>"<STR_LIT>" % data<EOL>])<EOL><DEDENT><DEDENT>return log<EOL>
Used to create log with successfully imported data.