Skip to content
Permalink
Browse files

[processing] temporarily disable fetch actions for scripts and models

  • Loading branch information
alexbruy committed Feb 5, 2018
1 parent 472b8bf commit 53ff800ff870f5d821bc9cb01a3b142ce36c456f
@@ -37,15 +37,18 @@
QgsXmlUtils)

from processing.core.ProcessingConfig import ProcessingConfig, Setting
from processing.modeler.ModelerUtils import ModelerUtils
from processing.modeler.WrongModelException import WrongModelException
from processing.modeler.EditModelAction import EditModelAction
from processing.modeler.CreateNewModelAction import CreateNewModelAction
from processing.modeler.DeleteModelAction import DeleteModelAction
from processing.modeler.AddModelFromFileAction import AddModelFromFileAction

#from processing.gui.GetScriptsAndModels import GetModelsAction
from processing.gui.ProviderActions import (ProviderActions,
ProviderContextMenuActions)

from processing.modeler.AddModelFromFileAction import AddModelFromFileAction
from processing.modeler.CreateNewModelAction import CreateNewModelAction
from processing.modeler.DeleteModelAction import DeleteModelAction
from processing.modeler.EditModelAction import EditModelAction
from processing.modeler.WrongModelException import WrongModelException
from processing.modeler.ModelerUtils import ModelerUtils

pluginPath = os.path.split(os.path.dirname(__file__))[0]


@@ -54,6 +57,9 @@ class ModelerAlgorithmProvider(QgsProcessingProvider):
def __init__(self):
super().__init__()
self.actions = [CreateNewModelAction(), AddModelFromFileAction()]
AddModelFromFileAction(),
#GetModelsAction()
]
self.contextMenuActions = [EditModelAction(), DeleteModelAction()]
self.algs = []

@@ -39,7 +39,7 @@
from processing.script.CreateNewScriptAction import CreateNewScriptAction
from processing.script.DeleteScriptAction import DeleteScriptAction
from processing.script.EditScriptAction import EditScriptAction
from processing.script.CreateScriptCollectionPluginAction import CreateScriptCollectionPluginAction
#from processing.script.CreateScriptCollectionPluginAction import CreateScriptCollectionPluginAction
from processing.script import ScriptUtils


@@ -51,7 +51,8 @@ def __init__(self):
self.folder_algorithms = []
self.actions = [CreateNewScriptAction(),
AddScriptFromFileAction(),
CreateScriptCollectionPluginAction()]
#CreateScriptCollectionPluginAction()
]
self.contextMenuActions = [EditScriptAction(),
DeleteScriptAction()]

0 comments on commit 53ff800

Please sign in to comment.
You can’t perform that action at this time.