safe.impact_reports.report_mixin_base module

InaSAFE Disaster risk assessment tool developed by AusAid - Impact Function Report Mixin Base Class

Contact : ole.moller.nielsen@gmail.com

Note

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

class safe.impact_reports.report_mixin_base.ReportMixin[source]

Bases: object

Report Mixin Interface.

New in version 3.1.

action_checklist()[source]

The actions to be taken in for the impact on this exposure type.

Returns:The action checklist.
Return type:list
blank_line[source]
generate_html_report()[source]

Generate an HTML report.

Returns:The report in html format.
Return type:basestring
generate_report()[source]

Defining the interface.

Returns:An itemized breakdown of the report.
Return type:list
impact_summary()[source]

The impact summary.

Returns:The action checklist.
Return type:list
notes()[source]

Additional notes to be used.

Returns:The notes to be added to this report

..Notes: Notes are very much specific to IFs so it is expected that this method is overwritten in the IF if needed.

static parse_to_html(report)[source]

Convert a json compatible list of results to a tabulated version.

Parameters:report (list) – A json compatible report
Returns:Returns a tabulated version of the report
Return type:basestring