MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / install

Method install

thirdparty/bottle/bottle.py:802–812  ·  view source on GitHub ↗

Add a plugin to the list of plugins and prepare it for being applied to all routes of this application. A plugin may be a simple decorator or an object that implements the :class:`Plugin` API.

(self, plugin)

Source from the content-addressed store, hash-verified

800 self.add_route(route)
801
802 def install(self, plugin):
803 """ Add a plugin to the list of plugins and prepare it for being
804 applied to all routes of this application. A plugin may be a simple
805 decorator or an object that implements the :class:`Plugin` API.
806 """
807 if hasattr(plugin, 'setup'): plugin.setup(self)
808 if not callable(plugin) and not hasattr(plugin, 'apply'):
809 raise TypeError("Plugins must be callable or implement .apply()")
810 self.plugins.append(plugin)
811 self.reset()
812 return plugin
813
814 def uninstall(self, plugin):
815 """ Uninstall plugins. Pass an instance to remove a specific plugin, a type

Callers 2

__init__Method · 0.95
runFunction · 0.80

Calls 4

resetMethod · 0.95
callableFunction · 0.85
setupMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected