AdministrativeDivision, HazardLevel, HazardCategory, HazardCategoryAdministrativeDivisionAssociation, HazardType, ClimateChangeRecommendation, TechnicalRecommendation, FurtherResource, ) # An object for the "no data" category type. _hazardlevel_nodata = HazardLevel() _hazardlevel_nodata.mnemonic = 'no-data' _hazardlevel_nodata.title = 'No data available' _hazardlevel_nodata.description = 'No data for this hazard type.' _hazardlevel_nodata.order = float('inf') @view_config(route_name='report_overview', renderer='templates/report.jinja2') @view_config(route_name='report_overview_slash', renderer='templates/report.jinja2') @view_config(route_name='report', renderer='templates/report.jinja2') def report(request): try: division_code = request.matchdict.get('divisioncode') except: raise HTTPBadRequest(detail='incorrect value for parameter ' '"divisioncode"') hazard = request.matchdict.get('hazardtype', None)