1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2026-03-15 15:52:02 +01:00

[#49] Changed the value format used for the component in its attr_dump method

This commit is contained in:
Roland Haroutiounian 2015-09-18 14:00:44 +02:00
commit e6de8b7a8b

View file

@ -56,7 +56,7 @@ class EmComponent(object):
## @brief Return a dict with attributes name as key and attributes value as value ## @brief Return a dict with attributes name as key and attributes value as value
# @note Used at creation and deletion to call the migration handler # @note Used at creation and deletion to call the migration handler
def attr_dump(self): def attr_dump(self):
return {fname: fval for fname, fval in self.__dict__.items() if not (fname.startswith('_') or (fname == 'uid'))} return {fname: fval.__str__() for fname, fval in self.__dict__.items() if not (fname.startswith('_') or (fname == 'uid'))}
@property @property
## @brief Provide a uniq name ## @brief Provide a uniq name