mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
[processing] update script collection metadata and homogenize quotes
This commit is contained in:
parent
7ecb0536fd
commit
0ffd993d02
@ -35,30 +35,30 @@ from processing.tools.system import mkdir
|
|||||||
|
|
||||||
pluginPath = os.path.split(os.path.dirname(__file__))[0]
|
pluginPath = os.path.split(os.path.dirname(__file__))[0]
|
||||||
|
|
||||||
initTemplate = '''from .plugin import ProcessingScriptCollectionPlugin
|
initTemplate = """from .plugin import ProcessingScriptCollectionPlugin
|
||||||
|
|
||||||
def classFactory(iface):
|
def classFactory(iface):
|
||||||
return ProcessingScriptCollectionPlugin()
|
return ProcessingScriptCollectionPlugin()
|
||||||
'''
|
"""
|
||||||
|
|
||||||
metadataTemplate = '''[general]
|
metadataTemplate = """[general]
|
||||||
name=$name$
|
name=$name$
|
||||||
description=$description$
|
description=$description$
|
||||||
category=Analysis
|
category=Plugins
|
||||||
version=1.0
|
version=1.0
|
||||||
qgisMinimumVersion=2.0
|
qgisMinimumVersion=3.0
|
||||||
|
|
||||||
author=$author$
|
author=$author$
|
||||||
email=$email$
|
email=$email$
|
||||||
|
|
||||||
tags=analysis,processing
|
tags=processing,analysis
|
||||||
|
|
||||||
homepage=http://qgis.org
|
homepage=
|
||||||
tracker=https://issues.qgis.org/projects/QGIS/issues
|
tracker=
|
||||||
repository=https://github.com/qgis/QGIS
|
repository=
|
||||||
'''
|
"""
|
||||||
|
|
||||||
pluginTemplate = '''import os
|
pluginTemplate = """import os
|
||||||
|
|
||||||
from processing.core.Processing import Processing
|
from processing.core.Processing import Processing
|
||||||
|
|
||||||
@ -69,14 +69,14 @@ class ProcessingScriptCollectionPlugin:
|
|||||||
|
|
||||||
def unload(self):
|
def unload(self):
|
||||||
Processing.removeScripts(os.path.join(os.path.dirname(__file__), "scripts"))
|
Processing.removeScripts(os.path.join(os.path.dirname(__file__), "scripts"))
|
||||||
'''
|
"""
|
||||||
|
|
||||||
|
|
||||||
class CreateScriptCollectionPluginAction(ToolboxAction):
|
class CreateScriptCollectionPluginAction(ToolboxAction):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.name, self.i18n_name = self.trAction('Create script collection plugin')
|
self.name, self.i18n_name = self.trAction("Create script collection plugin")
|
||||||
self.group, self.i18n_group = self.trAction('Tools')
|
self.group, self.i18n_group = self.trAction("Tools")
|
||||||
|
|
||||||
def getIcon(self):
|
def getIcon(self):
|
||||||
return QgsApplication.getThemeIcon("/processingScript.svg")
|
return QgsApplication.getThemeIcon("/processingScript.svg")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user