wuttaweb.views.reports

Report Views

class wuttaweb.views.reports.ReportView(request, context=None)[source]

Master view for reports; route prefix is reports.

Notable URLs provided by this class:

  • /reports/

  • /reports/XXX

run_report(report, context)[source]

Run the given report and update view template context.

This is called automatically from view().

Parameters:
  • reportReport instance to run.

  • context – Current view template context.

Returns:

Final view template context.

view()[source]

This lets user “view” the report but in this context that means showing them a form with report params, so they can run it.