File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
python/plugins/processing/core Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -561,12 +561,19 @@ def tableToString(table):
561
561
tablestring = tablestring [:- 1 ]
562
562
return tablestring
563
563
564
+ def getAsScriptCode (self ):
565
+ param_type = ''
566
+ if self .optional :
567
+ param_type += 'optional '
568
+ param_type += 'fixedtable'
569
+ return '##' + self .name + '=' + param_type
570
+
564
571
@classmethod
565
572
def fromScriptCode (self , line ):
566
573
isOptional , name , definition = _splitParameterOptions (line )
567
- if definition .startswith ("point " ):
574
+ if definition .startswith ("fixedtable " ):
568
575
descName = _createDescriptiveName (name )
569
- default = definition .strip ()[len ('point ' ) + 1 :] or None
576
+ default = definition .strip ()[len ('fixedtable ' ) + 1 :] or None
570
577
return ParameterFixedTable (name , descName , default , isOptional )
571
578
572
579
You can’t perform that action at this time.
0 commit comments