Data can be supplied from the server through the onBeginProcessData event instead of being stored in the template.

Handle the data event.
viewer = StiViewer()

# String name -> JavaScript client-side handler; a function -> Python server-side handler
viewer.onBeginProcessData += 'beginProcessData'

report = StiReport()
report.loadFile(url_for('static', filename='reports/SimpleList.mrt'))
viewer.report = report

How it works. The event lets code decide the report's data at request time, so the template need not carry its own connections.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.