widgetbrowser.wsgiapp

class widgetbrowser.wsgiapp.WidgetBrowser(global_conf={}, template_dirs=None, interactive=False, docs_dir=None, full_stack=True)

A widget browser WSGI app.

Parameters:

  • template_dirs: A list of directories that shall be searched for temlates used by the widget browser.
  • interactive: Enable code execution. This is needed to for the REPL and to override display arguments via the web interface. This is a BIG SECURITY HOLE, enable only in a controlled environment.
  • docs_dir: A directory where sphinx sources live.
docs_app(environ, start_response)
Registers widgetbrowser_js as resources before serving static html files so it is injected into the page
register_controller
Registers function to act as a demo controller for a widget

Previous topic

widgetbrowser.widgets

This Page

Quick search