Skip to content
Permalink
Browse files

[processing] update algorithm help link (fixes #13506)

  • Loading branch information
jef-n committed Oct 5, 2015
1 parent ac3f390 commit ca697dbaf28905660df0e12fa10ede2396c36867
Showing with 6 additions and 3 deletions.
  1. +6 −3 python/plugins/processing/core/GeoAlgorithm.py
@@ -132,13 +132,16 @@ def help(self):
groupName = groupName.replace('[', '').replace(']', '').replace(' - ', '_')
groupName = groupName.replace(' ', '_')
cmdLineName = self.commandLineName()
algName = cmdLineName[cmdLineName.find(':') + 1:].lower()
validChars = \
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_'
safeGroupName = ''.join(c for c in groupName if c in validChars)
safeAlgName = ''.join(c for c in algName if c in validChars)

helpUrl = 'http://docs.qgis.org/{}/en/docs/user_manual/processing_algs/{}/{}/{}.html'.format(qgsVersion, providerName, safeGroupName, safeAlgName)
safeAlgName = self.name.lower().replace(' ', '-')
validChars = \
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-'
safeAlgName = ''.join(c for c in safeAlgName if c in validChars)

helpUrl = 'http://docs.qgis.org/{}/en/docs/user_manual/processing_algs/{}/{}.html#{}'.format(qgsVersion, providerName, safeGroupName, safeAlgName)
return False, helpUrl

def processAlgorithm(self, progress):

0 comments on commit ca697db

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