Skip to content

Commit

Permalink
[processing] temporarily disable fetch actions for scripts and models
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Feb 5, 2018
1 parent 472b8bf commit 53ff800
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
18 changes: 12 additions & 6 deletions python/plugins/processing/modeler/ModelerAlgorithmProvider.py
Expand Up @@ -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]


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

Expand Down
5 changes: 3 additions & 2 deletions python/plugins/processing/script/ScriptAlgorithmProvider.py
Expand Up @@ -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


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

Expand Down

0 comments on commit 53ff800

Please sign in to comment.