Skip to content

Commit

Permalink
[processing] update script collection metadata and homogenize quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Jan 15, 2018
1 parent 7ecb053 commit 0ffd993
Showing 1 changed file with 14 additions and 14 deletions.
Expand Up @@ -35,30 +35,30 @@

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

initTemplate = '''from .plugin import ProcessingScriptCollectionPlugin
initTemplate = """from .plugin import ProcessingScriptCollectionPlugin
def classFactory(iface):
return ProcessingScriptCollectionPlugin()
'''
"""

metadataTemplate = '''[general]
metadataTemplate = """[general]
name=$name$
description=$description$
category=Analysis
category=Plugins
version=1.0
qgisMinimumVersion=2.0
qgisMinimumVersion=3.0
author=$author$
email=$email$
tags=analysis,processing
tags=processing,analysis
homepage=http://qgis.org
tracker=https://issues.qgis.org/projects/QGIS/issues
repository=https://github.com/qgis/QGIS
'''
homepage=
tracker=
repository=
"""

pluginTemplate = '''import os
pluginTemplate = """import os
from processing.core.Processing import Processing
Expand All @@ -69,14 +69,14 @@ def initGui(self):
def unload(self):
Processing.removeScripts(os.path.join(os.path.dirname(__file__), "scripts"))
'''
"""


class CreateScriptCollectionPluginAction(ToolboxAction):

def __init__(self):
self.name, self.i18n_name = self.trAction('Create script collection plugin')
self.group, self.i18n_group = self.trAction('Tools')
self.name, self.i18n_name = self.trAction("Create script collection plugin")
self.group, self.i18n_group = self.trAction("Tools")

def getIcon(self):
return QgsApplication.getThemeIcon("/processingScript.svg")
Expand Down

0 comments on commit 0ffd993

Please sign in to comment.