Skip to content

Commit d2c7008

Browse files
author
volayaf
committed
minor fixes
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@197 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
1 parent fb00f67 commit d2c7008

8 files changed

+29
-27
lines changed

src/sextante/grass/description/v.buffer.angle.txt

-9
This file was deleted.

src/sextante/grass/description/v.buffer.column.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Vector (v.*)
44
ParameterVector|input|input|-1|False
55
ParameterTableField|bufcolumn|bufcolumn|input
66
ParameterNumber|scale|scale|None|None|1.0
7-
ParameterString|tolerance|tolerance|0.01
7+
ParameterNumber|tolerance|tolerance|0|None|0.01
88
ParameterBoolean|-s|-s|True
99
ParameterBoolean|-c|-c|True
1010
OutputVector|output|output

src/sextante/grass/description/v.buffer.distance.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ v.buffer
22
v.buffer.distance
33
Vector (v.*)
44
ParameterVector|input|input|-1|False
5-
ParameterString|distance|distance|
6-
ParameterString|tolerance|tolerance|0.01
5+
ParameterNumber|distance|distance|0|None|1
6+
ParameterNumber|tolerance|tolerance|0|None|0.01
7+
ParameterNumber|minordistance|minordistance|0|None|0.0
8+
ParameterNumber|angle|angle|0|None|0.0
79
ParameterBoolean|-s|-s|True
810
ParameterBoolean|-c|-c|True
911
OutputVector|output|output

src/sextante/grass/description/v.buffer.minordistance.txt

-9
This file was deleted.

src/sextante/gui/ConfigDialog.py

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from sextante.core.SextanteConfig import SextanteConfig
55
from sextante.core.Sextante import Sextante
66
from sextante.core.SextanteUtils import SextanteUtils
7+
from sextante.gui.ExternalAppsConfigurer import ExternalAppsConfigurer
78

89

910
class ConfigDialog(QtGui.QDialog):
@@ -44,6 +45,7 @@ def setupUi(self):
4445
self.externalAppsButton = QtGui.QPushButton()
4546
self.externalAppsButton.setText("Configure external apps")
4647
self.horizontalLayout.addWidget(self.externalAppsButton)
48+
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("clicked()"), self.configureExternalApps)
4749
self.horizontalLayout.addSpacing(100)
4850
self.horizontalLayout.addWidget(self.buttonBox)
4951
self.verticalLayout.addLayout(self.horizontalLayout)
@@ -52,6 +54,9 @@ def setupUi(self):
5254
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), self.cancelPressed)
5355
QtCore.QMetaObject.connectSlotsByName(self)
5456

57+
def configureExternalApps(self):
58+
ExternalAppsConfigurer.configure()
59+
#TODO find a way to automate
5560

5661
def fillTree(self):
5762
self.items = {}
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class ExternalAppsConfigurer():
2+
3+
@staticmethod
4+
def configure():
5+
#TODO find a way of automating this, not having to add each provider here manually
6+
7+
pass
8+
9+
def folderFinder(self, s):
10+
pass

src/sextante/modeler/ModelerAlgorithm.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,9 @@ def getDependsOnAlgorithms(self, algIndex):
225225
'''This method returns a list with the indexes of algorithm a given one depends on'''
226226
algs = []
227227
for aap in self.algParameters[algIndex].values():
228-
if aap.alg != AlgorithmAndParameter.PARENT_MODEL_ALGORITHM and aap.alg not in algs:
229-
algs.append(aap.alg)
228+
if aap is not None:
229+
if aap.alg != AlgorithmAndParameter.PARENT_MODEL_ALGORITHM and aap.alg not in algs:
230+
algs.append(aap.alg)
230231
return algs
231232

232233
def getDependentAlgorithms(self, algIndex):
@@ -236,9 +237,10 @@ def getDependentAlgorithms(self, algIndex):
236237
for alg in self.algParameters:
237238
index += 1
238239
for aap in alg.values():
239-
if aap.alg == algIndex:
240-
dependent.append(index)
241-
break
240+
if aap is not None:
241+
if aap.alg == algIndex:
242+
dependent.append(index)
243+
break
242244

243245
return dependent
244246

src/sextante/saga/SagaUtils.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ def executeSaga(progress):
7575
s = "".join([x for x in line if x.isdigit()])
7676
progress.setPercentage(int(s))
7777
else:
78-
loglines.append(line)
78+
if line!="/" and line!="-" and line !="\\":
79+
loglines.append(line)
7980
SextanteLog.addToLog(SextanteLog.LOG_INFO, loglines)
8081

8182

0 commit comments

Comments
 (0)