File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
python/plugins/processing Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,12 @@ def getHtmlFromHelpFile(alg, helpFile):
60
60
try :
61
61
with open (helpFile ) as f :
62
62
descriptions = json .load (f )
63
+ return getHtmlFromDescriptionsDict (descriptions )
63
64
except :
64
65
return None
66
+
67
+ def getHtmlFromDescriptionsDict (alg , descriptions ):
68
+
65
69
s = '<html><body><h2>Algorithm description</h2>\n '
66
70
s += '<p>' + getDescription (ALG_DESC , descriptions ) + '</p>\n '
67
71
s += '<h2>Input parameters</h2>\n '
Original file line number Diff line number Diff line change 17
17
***************************************************************************
18
18
"""
19
19
20
-
21
-
22
20
__author__ = 'Victor Olaya'
23
21
__date__ = 'August 2012'
24
22
__copyright__ = '(C) 2012, Victor Olaya'
45
43
from processing .core .parameters import *
46
44
from processing .tools import dataobjects
47
45
from processing .core .parameters import getParameterFromString
48
-
49
-
46
+ from processing .gui .Help2Html import getHtmlFromDescriptionsDict
50
47
51
48
class ModelerParameter ():
52
49
@@ -468,8 +465,7 @@ def updateModelerView(self):
468
465
469
466
def help (self ):
470
467
try :
471
- helpfile = self .descriptionFile + '.help'
472
- return True , getHtmlFromHelpFile (self , helpfile )
468
+ return True , getHtmlFromDescriptionsDict (self , self .help ())
473
469
except :
474
470
return False , None
475
471
You can’t perform that action at this time.
0 commit comments