Skip to content
Permalink
Browse files

Fix indentation

  • Loading branch information
nyalldawson committed Jun 7, 2016
1 parent 179a92c commit fbc5e0fc8ea2ae1ebc79dad309d67f30d6a406ba
@@ -228,7 +228,6 @@ def getAsScriptCode(self):
return '##' + self.name + '=' + param_type



class ParameterPoint(Parameter):

def __init__(self, name='', description='', default=None, optional=False):
@@ -846,6 +845,7 @@ def getAsScriptCode(self):


class ParameterTableField(Parameter):

"""A parameter representing a table field.
Its value is a string that represents the name of the field.
@@ -899,6 +899,7 @@ def getAsScriptCode(self):


class ParameterTableMultipleField(Parameter):

"""A parameter representing several table fields.
Its value is a string with items separated by semicolons, each of
which represents the name of each field.
@@ -27,6 +27,7 @@


class ListMultiSelectWidget(QGroupBox):

"""Widget to show two parallel lists and move elements between the two
usage from code:
@@ -457,8 +457,8 @@ def updateDependentFields(self):
not isinstance(child, ParameterTableMultipleField)):
widget.addItem(self.tr('[not set]'))
widget.addItems(
self.getFields(layer, self.alg.getParameterFromName(
child.name).datatype))
self.getFields(layer, self.alg.getParameterFromName(
child.name).datatype))
if isinstance(child, OutputVector):
child.base_layer = layer

@@ -127,7 +127,7 @@ def setupUi(self):
self.horizontalLayoutParent.addWidget(self.state)
self.verticalLayout.addLayout(self.horizontalLayoutParent)
elif self.paramType in (
ModelerParameterDefinitionDialog.PARAMETER_TABLE_FIELD,
ModelerParameterDefinitionDialog.PARAMETER_TABLE_FIELD,
ModelerParameterDefinitionDialog.PARAMETER_TABLE_MULTIPLE_FIELD)\
or isinstance(self.param, (ParameterTableField,
ParameterTableMultipleField)):
@@ -146,7 +146,7 @@ def setupUi(self):

# add the datatype selector
self.horizontalLayoutDatatype.addWidget(QLabel(self.tr('Allowed '
'data type')))
'data type')))
self.datatypeCombo = QComboBox()
self.datatypeCombo.addItem(self.tr('Any'), -1)
self.datatypeCombo.addItem(self.tr('Number'), 0)
@@ -435,6 +435,7 @@ def testOptional(self):


class ParameterTableMultipleFieldTest(unittest.TestCase):

def setUp(self):
self.parent_name = 'test_parent_layer'
test_data = points2()

0 comments on commit fbc5e0f

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