Browse Source

Fixed read_attrs

Yentl Van Tendeloo 7 years ago
parent
commit
53c24a4da8
2 changed files with 2 additions and 2 deletions
  1. 1 1
      bootstrap/mini_modify.alc
  2. 1 1
      wrappers/modelverse_SCCD.py

+ 1 - 1
bootstrap/mini_modify.alc

@@ -414,7 +414,7 @@ String function cmd_read_attrs(model : Element, element_name : String):
 		attr_keys = dict_keys(attr_list)
 		attr_keys = dict_keys(attr_list)
 		while (0 < set_len(attr_keys)):
 		while (0 < set_len(attr_keys)):
 			attr_key = set_pop(attr_keys)
 			attr_key = set_pop(attr_keys)
-			result = string_join(result, attr_key) + " : " + cast_value(attr_list[attr_key]) + " = " + cast_value(read_attribute(model, element_name, attr_key)) + "\n"
+			result = string_join(result, attr_key) + " : " + cast_value(attr_list[attr_key]) + " = " + cast_string(read_attribute(model, element_name, attr_key)) + "\n"
 		return result!
 		return result!
 	else:
 	else:
 		return "Element not found: " + element_name!
 		return "Element not found: " + element_name!

+ 1 - 1
wrappers/modelverse_SCCD.py

@@ -1,7 +1,7 @@
 """
 """
 Generated by Statechart compiler by Glenn De Jonghe, Joeri Exelmans, Simon Van Mierlo, and Yentl Van Tendeloo (for the inspiration)
 Generated by Statechart compiler by Glenn De Jonghe, Joeri Exelmans, Simon Van Mierlo, and Yentl Van Tendeloo (for the inspiration)
 
 
-Date:   Fri Apr  6 10:27:34 2018
+Date:   Fri Apr 20 09:02:14 2018
 
 
 Model author: Yentl Van Tendeloo
 Model author: Yentl Van Tendeloo
 Model name:   MvK Server
 Model name:   MvK Server