calm-dsl
calm-dsl copied to clipboard
Improve the python file output by decompile method to not to show defaults for various entities
Right now, the output python file via decompile command shows the default value for various entities too. For ex:
var9 = CalmVariable.Simple.Secret.date( "", label="var9_label", regex="^((0[1-9]|[12]\d|3[01])/(0[1-9]|1[0-2])/[12]\d{3})$", validate_regex=True, is_mandatory=False, is_hidden=False, runtime=False, )
It shows the default value for various attributes like is_mandatory, is_hidden, runtime etc. If we can just omit default values from python file, it would remove redundant code.