Skip to content
Permalink
Browse files

[processing] restore script collection creator (fix #17649)

  • Loading branch information
alexbruy committed Dec 27, 2017
1 parent 3b89052 commit d58053d486adb38208fe8c3bc130ade6fa072c39
@@ -40,6 +40,7 @@
def classFactory(iface):
return ProcessingScriptCollectionPlugin()
'''

metadataTemplate = '''[general]
name=$name$
description=$description$
@@ -59,7 +59,7 @@ def __init__(self):
scriptItem.setFlags(scriptItem.flags() | Qt.ItemIsUserCheckable)
scriptItem.setCheckState(0, Qt.Checked)
scriptItem.script = script
scriptItem.setText(0, script.name)
scriptItem.setText(0, script.name())
groupItem.addChild(scriptItem)
self.scriptsTree.addTopLevelItem(groupItem)

@@ -74,7 +74,7 @@ def __init__(self):
self.buttonBox.rejected.connect(self.cancelPressed)

def selectFolder(self):
folder = QFileDialog.getExistingDirectory(self, 'Select folder')
folder = QFileDialog.getExistingDirectory(self, "Select folder")
if folder:
self.folderBox.setText(folder)

@@ -95,7 +95,7 @@ def _getValue(self, textBox):
if value:
return value
textBox.setStyleSheet("QLineEdit{background: yellow}")
raise Exception("wrong parameter value")
raise Exception("Wrong parameter value")

def okPressed(self):
self.scripts = []
@@ -113,4 +113,5 @@ def okPressed(self):
self.email = self._getValue(self.emailBox)
except:
return

self.close()

0 comments on commit d58053d

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