mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
[processing] temporarily disable fetch actions for scripts and models
This commit is contained in:
parent
472b8bf6bf
commit
53ff800ff8
@ -37,15 +37,18 @@ from qgis.core import (QgsApplication,
|
||||
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.AddScriptFromFileAction import AddScriptFromFileAction
|
||||
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 @@ class ScriptAlgorithmProvider(QgsProcessingProvider):
|
||||
self.folder_algorithms = []
|
||||
self.actions = [CreateNewScriptAction(),
|
||||
AddScriptFromFileAction(),
|
||||
CreateScriptCollectionPluginAction()]
|
||||
#CreateScriptCollectionPluginAction()
|
||||
]
|
||||
self.contextMenuActions = [EditScriptAction(),
|
||||
DeleteScriptAction()]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user