Skip to content

Commit f1dc58c

Browse files
committed
[processing] fixed saga help links
1 parent c9841fb commit f1dc58c

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

python/plugins/processing/algs/saga/SagaAlgorithm212.py

+1-11
Original file line numberDiff line numberDiff line change
@@ -352,14 +352,4 @@ def checkParameterValuesBeforeExecuting(self):
352352
if extent != extent2:
353353
return self.tr("Input layers do not have the same grid extent.")
354354

355-
def help(self):
356-
name = self.cmdname.lower()
357-
validChars = 'abcdefghijklmnopqrstuvwxyz'
358-
name = ''.join(c for c in name if c in validChars)
359-
html = getHtmlFromRstFile(os.path.join(os.path.dirname(__file__), 'help',
360-
name + '.rst'))
361-
if html is None:
362-
return True, None
363-
imgpath = os.path.join(pluginPath, 'images', 'saga.png')
364-
html = ('<img src="%s"/>' % imgpath) + html
365-
return True, html
355+

python/plugins/processing/core/GeoAlgorithm.py

-7
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,6 @@ def help(self):
139139
helpUrl = 'http://docs.qgis.org/{}/en/docs/user_manual/processing_algs/{}/{}/{}.html'.format(qgsVersion, providerName, safeGroupName, safeAlgName)
140140
return False, helpUrl
141141

142-
# name = self.commandLineName().split(':')[1].lower()
143-
# filename = os.path.join(os.path.dirname(inspect.getfile(self.__class__)), 'help', name + '.rst')
144-
# try:
145-
# html = getHtmlFromRstFile(filename)
146-
# return True, html
147-
# except:
148-
# return False, None
149142

150143
def processAlgorithm(self):
151144
"""Here goes the algorithm itself.

0 commit comments

Comments
 (0)