1.1.5.5. plugin_manager

This module provides the window through which the user can enable and disable plugins.

1.1.5.5.1. Classes

class PluginDocumentationWindow(application, plugin_id)[source]

Bases: king_phisher.client.windows.html.HTMLWindow

A window for displaying plugin documentation from their respective README.md files. If the documentation file can not be found a FileNotFoundError exception will be raised on initialization. The contents of the README.md file is then rendered as markdown data and displayed using an HTMLWindow. The plugin must be loaded into the plugin_manager but does not have to be enabled for documentation to be displayed.

__init__(application, plugin_id)[source]
Parameters:
  • application (Gtk.Application) – The parent application for this object.
  • plugin_id (str) – The identifier of this plugin.
refresh()[source]

Refresh the contents of the documentation. This will reload both the markdown content from README.md as well as the HTML template file.

template = 'plugin-documentation.html'[source]

The Jinja2 HTML template to load for hosting the rendered markdown documentation.

class PluginManagerWindow(*args, **kwargs)[source]

Bases: king_phisher.client.gui_utilities.GladeGObject

The window which allows the user to selectively enable and disable plugins for the client application. This also handles configuration changes, so the enabled plugins will persist across application runs.

__init__(*args, **kwargs)[source]
Parameters:application (Gtk.Application) – The parent application for this object.