File tree 1 file changed +8
-0
lines changed
python/plugins/processing/algs/saga
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ def __init__(self, descriptionfile):
73
73
self ._name = ''
74
74
self ._display_name = ''
75
75
self ._group = ''
76
+ self ._groupId = ''
76
77
self .params = []
77
78
self .defineCharacteristicsFromFile ()
78
79
@@ -92,6 +93,9 @@ def displayName(self):
92
93
def group (self ):
93
94
return self ._group
94
95
96
+ def groupId (self ):
97
+ return self ._groupId
98
+
95
99
def shortHelpString (self ):
96
100
return shortHelp .get (self .id (), None )
97
101
@@ -119,6 +123,10 @@ def defineCharacteristicsFromFile(self):
119
123
line = lines .readline ().strip ('\n ' ).strip ()
120
124
self .undecorated_group = line
121
125
self ._group = self .tr (decoratedGroupName (self .undecorated_group ))
126
+
127
+ validChars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789:'
128
+ grpName = decoratedGroupName (self .undecorated_group ).lower ()
129
+ self ._groupId = '' .join (c for c in grpName if c in validChars )
122
130
line = lines .readline ().strip ('\n ' ).strip ()
123
131
while line != '' :
124
132
if line .startswith ('Hardcoded' ):
You can’t perform that action at this time.
0 commit comments