calm-dsl icon indicating copy to clipboard operation
calm-dsl copied to clipboard

Improve the python file output by decompile method to not to show defaults for various entities

Open abhijeetkaurav1st opened this issue 4 years ago • 0 comments

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.

abhijeetkaurav1st avatar Mar 21 '20 06:03 abhijeetkaurav1st