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:
parent
eaf0520d3b
commit
e6de8b7a8b
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue