scipion.install.plugin_manager module

class scipion.install.plugin_manager.Operation(objName, objType='plugin', objStatus='install', objParent=None)[source]

Bases: object

This class contain the object(plugin/binary) operation details

getObjName()[source]

Get the object(plugin/binary) name

getObjParent()[source]

Get the object parent in the tree. If the object is a binary, this method return None

getObjStatus()[source]

Get the object status (installed, uninstalled, to install,…)

getObjText()[source]

Get the object(plugin/binary) text

getObjType()[source]

Get the object type (plugin or binary)

runOperation(processors, handleBins=True)[source]

This method install or uninstall a plugin/binary operation

Parameters
  • processors – number of processors to compilation

  • handleBins – deal with binaries installation/uninstallation if true (default)

setObjStatus(status)[source]

Set the object status

class scipion.install.plugin_manager.OperationList[source]

Bases: object

This class contains a plugins/binaries operations list and allows to execute it

applyOperations()[source]

Execute a operation list

clearOperations()[source]

Clear the operation List

getOperationByName(opName)[source]

Return an operation that match with a given name

getOperations(op)[source]

Return the operation List. If the operation is not None return a list with only the operation op

insertOperation(operation)[source]

This method insert into the list a given operation. If the operation was inserted previously is eliminated

operationIndex(operation)[source]

Returns the index of an operation within the list

removeOperation(index)[source]

Remove an operation from the list based on an index

class scipion.install.plugin_manager.PluginBrowser(master, **args)[source]

Bases: Frame

This class will implement a frame. It will display a list of plugin at the left panel. A TreeProvider will be used to populate the list (Tree). At the right panel provide a plugin/binary information(top panel) and a list of operation (bottom panel)

Construct a frame widget with the parent MASTER.

Valid resource names: background, bd, bg, borderwidth, class, colormap, container, cursor, height, highlightbackground, highlightcolor, highlightthickness, relief, takefocus, visual, width.

deleteOperation(operationName)[source]

Delete an operation given the object name

isPlugin(value)[source]
linkToWebSite(event)[source]

Load the plugin url

loadPlugins()[source]

Load all plugins and fill the tree view widget

operationInformation(event)[source]

Update the operationTree selected item

reloadInstalledPlugin(pluginName)[source]

Reload a given plugin and update the tree view

showOperationList()[source]

Shows the operation list at left bottom panel :return:

showPluginInformation(pluginName)[source]

Shows the information associated with a given plugin

class scipion.install.plugin_manager.PluginHelp(title, master=None, **kwargs)[source]

Bases: Window

Windows to hold a plugin manager help

Create a Tk window. title: string to use as title for the windows. master: if not provided, the windows create will be the principal one weight: if true, the first col and row will be configured with weight=1 minsize: a minimum size for height and width icon: if not None, set the windows icon

createHelp()[source]
class scipion.install.plugin_manager.PluginManager(title, master=None, **kwargs)[source]

Bases: PluginManagerWindow

Windows to hold a frame inside.

Create a Tk window. title: string to use as title for the windows. master: if not provided, the windows create will be the principal one weight: if true, the first col and row will be configured with weight=1 minsize: a minimum size for height and width icon: if not None, set the windows icon

class scipion.install.plugin_manager.PluginManagerWindow(title, master=None, **kwargs)[source]

Bases: Window

Windows to hold a plugin manager frame inside.

Create a Tk window. title: string to use as title for the windows. master: if not provided, the windows create will be the principal one weight: if true, the first col and row will be configured with weight=1 minsize: a minimum size for height and width icon: if not None, set the windows icon

close(e=None)[source]
onExit()[source]
onHelp()[source]
onUser()[source]
onVariables()[source]
class scipion.install.plugin_manager.PluginTree(master=None, **kw)[source]

Bases: Treeview

Treeview widget with checkboxes left of each item. The checkboxes are done via the image attribute of the item, so to keep the checkbox, you cannot add an image to the item.

Construct a Ttk Treeview with parent master.

STANDARD OPTIONS

class, cursor, style, takefocus, xscrollcommand, yscrollcommand

WIDGET-SPECIFIC OPTIONS

columns, displaycolumns, height, padding, selectmode, show

ITEM OPTIONS

text, image, values, open, tags

TAG OPTIONS

foreground, background, font, image

check_item(item)[source]

check the box of item and change the state of the boxes of item’s ancestors accordingly

disable()[source]
enable()[source]
failure_item(item)[source]

change the box item to failure item

insert(parent, index, iid=None, **kw)[source]

same method as for standard treeview but add the tag ‘unchecked’ automatically if no tag among (‘checked’, ‘unchecked’) is given

installed_item(item)[source]

change the box item to processing item

is_disabled()[source]
is_enabled()[source]
processing_item(item)[source]

change the box item to processing item

uncheck_item(item)[source]

uncheck the boxes of item’s descendant

update_item(item)[source]

change the boxes item to update item’s

scipion.install.plugin_manager.getRotatingFileLogger(name, path)[source]
scipion.install.plugin_manager.main()[source]