Skip to content
Permalink
Browse files

[processing] add group id to SAGA algorithms

  • Loading branch information
alexbruy committed Dec 14, 2017
1 parent 6f43954 commit 5e157c967d0e75909aca7b77d6d9ebe0c32da103
Showing with 8 additions and 0 deletions.
  1. +8 −0 python/plugins/processing/algs/saga/SagaAlgorithm.py
@@ -73,6 +73,7 @@ def __init__(self, descriptionfile):
self._name = ''
self._display_name = ''
self._group = ''
self._groupId = ''
self.params = []
self.defineCharacteristicsFromFile()

@@ -92,6 +93,9 @@ def displayName(self):
def group(self):
return self._group

def groupId(self):
return self._groupId

def shortHelpString(self):
return shortHelp.get(self.id(), None)

@@ -119,6 +123,10 @@ def defineCharacteristicsFromFile(self):
line = lines.readline().strip('\n').strip()
self.undecorated_group = line
self._group = self.tr(decoratedGroupName(self.undecorated_group))

validChars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789:'
grpName = decoratedGroupName(self.undecorated_group).lower()
self._groupId = ''.join(c for c in grpName if c in validChars)
line = lines.readline().strip('\n').strip()
while line != '':
if line.startswith('Hardcoded'):

0 comments on commit 5e157c9

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