Skip to content


Add metadata property to parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-morvan authored and volaya committed Oct 5, 2016
1 parent 484fd18 commit 2ad27b1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion python/plugins/processing/core/
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ class Parameter(object):
take as input.

def __init__(self, name='', description='', default=None, optional=False):
default_metadata = {}

def __init__(self, name='', description='', default=None, optional=False,
metadata={}): = name
self.description = description
self.default = default
Expand All @@ -73,6 +76,10 @@ def __init__(self, name='', description='', default=None, optional=False):

self.optional = parseBool(optional)

# TODO: make deep copy and deep update
self.metadata = self.default_metadata.copy()

def setValue(self, obj):
Sets the value of the parameter.
Expand Down

0 comments on commit 2ad27b1

Please sign in to comment.