def render_htmldiv(self, entries, errors, options_map, file):
     document_entries = list(misc_utils.filter_type(entries, data.Document))
     if document_entries:
         journal_html.html_entries_table(file, document_entries,
                                         self.formatter)
     else:
         file.write("<p>(No documents.)</p>")
Beispiel #2
0
    def render_htmldiv(self, entries, errors, options_map, file):
        # Return the subset of transaction entries which have a conversion.
        conversion_entries = [entry
                              for entry in misc_utils.filter_type(entries, data.Transaction)
                              if data.transaction_has_conversion(entry)]

        journal_html.html_entries_table(file, conversion_entries, self.formatter,
                              render_postings=True)