Skip to content
Permalink
Browse files
[processing] fixed saga help links
  • Loading branch information
volaya committed May 21, 2015
1 parent c9841fb commit f1dc58ce01f312cad8fa6b876ad12f36bad8fad4
Showing with 1 addition and 18 deletions.
  1. +1 −11 python/plugins/processing/algs/saga/SagaAlgorithm212.py
  2. +0 −7 python/plugins/processing/core/GeoAlgorithm.py
@@ -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

@@ -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.

0 comments on commit f1dc58c

Please sign in to comment.