mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-05 00:04:40 -05:00
Remove metadata from parameter.todict (do not save in model)
This commit is contained in:
parent
2ad27b172e
commit
ecb7b3a096
@ -120,7 +120,9 @@ class Parameter(object):
|
|||||||
return self.__class__.__name__.replace('Parameter', '').lower()
|
return self.__class__.__name__.replace('Parameter', '').lower()
|
||||||
|
|
||||||
def todict(self):
|
def todict(self):
|
||||||
return self.__dict__
|
o = self.__dict__
|
||||||
|
del o['metadata']
|
||||||
|
return o
|
||||||
|
|
||||||
def tr(self, string, context=''):
|
def tr(self, string, context=''):
|
||||||
if context == '':
|
if context == '':
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user