Skip to content

Commit

Permalink
Fix python expression functions
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 29, 2017
1 parent 0fbdb04 commit ca5a0bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __init__(self, func, name, args, group, helptext='', usesGeometry=True,
self.uses_geometry = usesGeometry
self.referenced_columns = referencedColumns

def func(self, values, context, parent):
def func(self, values, context, parent, node):
feature = None
if context:
feature = context.feature()
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsexpression.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def testAutoArgsAreExpanded(self):
self.assertEqual(args, 3)
values = [1, 2, 3]
exp = QgsExpression("")
result = function.func(values, None, exp)
result = function.func(values, None, exp, None)
# Make sure there is no eval error
self.assertEqual(exp.evalErrorString(), "")
self.assertEqual(result, (1, 2, 3))
Expand Down

0 comments on commit ca5a0bb

Please sign in to comment.