Closed mehdisadeghi closed 7 years ago
This PR disables mandatory keyword restriction on data property of CUDS classes. In order to have restriction, one must do it manually:
data
CUDS
RestrictedDataContainer = create_data_container(Material.supported_parameters()) rdc = RestrictedDataContainer() rdc[CUBA.NAME] = 'myname' m1 = Material(data=rdc) m2 = Material() m1.data[CUBA.MASS] = 1.0 # Not allowed m2.data[CUBA.MASS] = 1.0 #Allowed by default
Solution: disable it.
Related PR: https://github.com/simphony/simphony-common/pull/293
This PR disables mandatory keyword restriction on
data
property ofCUDS
classes. In order to have restriction, one must do it manually:Solution: disable it.