OrsInfiniteToolbox

Manages user extensions on the ORS Store, used to share user extensions

author:ORS Team
contact:http://theobjects.com
email:info@theobjects.com
organization:Object Research Systems (ORS), Inc.
address:460 Ste-Catherine Ouest, suite 600, Montréal, Québec, Canada, H3B 1A7
copyright:Object Research Systems (ORS), Inc. All rights reserved 2021.
date:Dec 19 2016 10:26
dragonflyVersion:
 2.1.0.200 (D)
UUID:f3249658e25611e691b6448a5b87686a

Class Code

class OrsPythonPlugins.OrsInfiniteToolbox.OrsInfiniteToolbox.OrsInfiniteToolbox(varname=None)
UIDescriptors = [<ORSServiceClass.OrsPlugin.uidescriptor.UIDescriptor object>]
addToolToStoreRepository(gitlabOAuth, toolInfo, latestBibliography)
addToolToToolbox(aToolInfo)
canBeGenericallyOpened = False
cleanup()

Deletes the variables managed by the plugin. It is the place to remove callbacks and other references to Python objects that would prevent them to be garbage collected. This method is called during the process of deletion of the plugin. It calls for the cleanup and deletion of the forms.

getIsToolInToolbox(aUUID)
getStoreRepository()
getToolInfoByUUID(aToolUUID) → ORSServiceClass.infinitetoolbox.orsinfinitetool.InfiniteTool
classmethod installTool(toolInfo, forEveryone, version, repository, forceInstall=False, skipDepencyCheck=False)

Install the tool specified by toolInfo

Parameters:
  • toolInfo (InfiniteTool) – information on the tool
  • forEveryone (bool) –
  • version – semantic version in string
  • repo – repository
  • forceInstall – if true, it will overwrite if the tool already exists. otherwise, if false. it won’t install it
  • dependenciesBeingInstalled – a map of uuid to a ToolDependency
Type:

str

Type:

map

Returns:

output (str) – an error message, empty string if there wasn’t any errors

instance = None
keepAlive = False
interfacemethod launchStore()

Interface to launch the Dragonfly store.

listToolsInToolbox(toolType=None)
loadInstalledTools()
loadToolsFromRepository()
multiple = False
classmethod openGUI(mainForm=None, anAction=None, webpage=None)
refreshToolInStore(aTool, toolInfo)
interfacemethod removeToolFromStore()

Interface to remove a tool from the store (and repository).

classmethod resolveDependenciesForTool(tool, version, repository, dependenciesToInstall=None)
savable = False
searchTools(pattern: str, field: str = None, socket: str = None, score: float = 0.5, limit: int = None)

Search the store for the given pattern In the future, this will directly search the store when we will have to many plugins

Return a list of uuid with score > score :param pattern: str :param field: the search field: “name”, “authors”, “organization” :param score: float, percentage :param limit: limit on the number of searches :return: set of unique uuids

showInToolbar = True
startServer()
classmethod startupDefault(openMainForm=True)

Creates an instance of the plugin class and opens the main form (if required) at the default position.

Returns:output (AbstractPlugin) – plugin instance
classmethod toolsMenuLaunchStore()
uninstallToolFromDragonfly(tool: ORSServiceClass.infinitetoolbox.orsinfinitetool.InfiniteTool)
updateToolInStoreRepository(gitlabOAuth, toolInfo: ORSServiceClass.infinitetoolbox.orsinfinitetool.InfiniteTool, version, release_notes, latestBibliography)