Reports.py

The Reports button in the Results window lets users build custom reports out of a list of predefined items. This module lets you add your own items to that list.

To run a report, QUB invokes each item with the same context object. You can use the context object to share information between items; e.g. to make them all write to the same document.

See WordReport.py for the full MS Word report source. Note that your items can write to other programs as long as they can talk to Python or VBA.

Add( name, item, resultTypes )

name      how your item will appear in the list
item      a function of (results, context )
resultTypes      e.g. ['MIL', 'MPL']

Adds your item to the options for the specified types of results.