browser.reports - Reports Components

Browser components for report generation.

class waeup.kofa.browser.reports.ReportsContainerCreate(context, request)[source]

Bases: waeup.kofa.browser.layout.KofaPage

Create a new report.

__doc__ = 'Create a new report.\n '
__module__ = 'waeup.kofa.browser.reports'

Get all registered report generator names.

Returns a list of tuples (<TITLE>, <NAME>) with <TITLE> being a human readable description of the respective generator and <NAME> being the registration name with the ZCA.

If waeup.local.ReportsOfficer role has been assigned at department level, list only report generator which allow to filter department data.

label = u'Create report'
locally_allowed_reports = ('level_report', 'raw_score_report', 'session_results_presentation')
update(START_GENERATOR=None, generator=None)[source]
class waeup.kofa.browser.reports.ReportsContainerPage(context, request)[source]

Bases: waeup.kofa.browser.layout.KofaPage

A view on a reports container.

__doc__ = 'A view on a reports container.\n '
__module__ = 'waeup.kofa.browser.reports'

Get the PDF download URL of a report.

label = u'Reports'
update(job_id=None, DISCARD=None, DOWNLOAD=None, PURGE=None)[source]
class waeup.kofa.browser.reports.ReportsContainerTraverser(context, request)[source]

Bases: grok.components.Traverser

A traverser for reports containers.

__doc__ = 'A traverser for reports containers.\n '
__module__ = 'waeup.kofa.browser.reports'

Return a report generator or report if one is registered under name.

Generators are registered by their utility names while reports are looked up by their job id. So, name must be a report generator name or a valid job_id of a report job.