diff options
| author | Brian Potchik <brian@vector35.com> | 2021-08-04 11:09:16 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2021-08-04 11:09:16 -0400 |
| commit | 98c2b6f32e3181a3a3462c6bd41306ff674a515b (patch) | |
| tree | 189c5e7badf84a92b44e31fb2ad3fa18a01ed601 /python/interaction.py | |
| parent | 754fb4d12a85cdf8c791725002c9a1e78894d8c0 (diff) | |
Add query mode to flow graph reports.
Diffstat (limited to 'python/interaction.py')
| -rw-r--r-- | python/interaction.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/python/interaction.py b/python/interaction.py index 13cf93c6..7cc4442b 100644 --- a/python/interaction.py +++ b/python/interaction.py @@ -984,6 +984,18 @@ class ReportCollection(object): else: raise TypeError("expected report object") + def update(self, i, report): + # if isinstance(report, PlainTextReport): + # core.BNUpdatePlainTextReportToCollection(self.handle, i, report.contents) + # elif isinstance(report, MarkdownReport): + # core.BNUpdateMarkdownReportToCollection(self.handle, i, report.contents, report.plaintext) + # elif isinstance(report, HTMLReport): + # core.BNUpdateHTMLReportToCollection(self.handle, i, report.contents, report.plaintext) + if isinstance(report, FlowGraphReport): + core.BNUpdateReportFlowGraph(self.handle, i, report.graph.handle) + else: + raise TypeError("expected report object") + def markdown_to_html(contents): """ |
