Skip to content

Commit

Permalink
[processing] fixed saga help links
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed May 21, 2015
1 parent c9841fb commit f1dc58c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
12 changes: 1 addition & 11 deletions python/plugins/processing/algs/saga/SagaAlgorithm212.py
Expand Up @@ -352,14 +352,4 @@ def checkParameterValuesBeforeExecuting(self):
if extent != extent2:
return self.tr("Input layers do not have the same grid extent.")

def help(self):
name = self.cmdname.lower()
validChars = 'abcdefghijklmnopqrstuvwxyz'
name = ''.join(c for c in name if c in validChars)
html = getHtmlFromRstFile(os.path.join(os.path.dirname(__file__), 'help',
name + '.rst'))
if html is None:
return True, None
imgpath = os.path.join(pluginPath, 'images', 'saga.png')
html = ('<img src="%s"/>' % imgpath) + html
return True, html

7 changes: 0 additions & 7 deletions python/plugins/processing/core/GeoAlgorithm.py
Expand Up @@ -139,13 +139,6 @@ def help(self):
helpUrl = 'http://docs.qgis.org/{}/en/docs/user_manual/processing_algs/{}/{}/{}.html'.format(qgsVersion, providerName, safeGroupName, safeAlgName)
return False, helpUrl

# name = self.commandLineName().split(':')[1].lower()
# filename = os.path.join(os.path.dirname(inspect.getfile(self.__class__)), 'help', name + '.rst')
# try:
# html = getHtmlFromRstFile(filename)
# return True, html
# except:
# return False, None

def processAlgorithm(self):
"""Here goes the algorithm itself.
Expand Down

0 comments on commit f1dc58c

Please sign in to comment.