소스 검색

[#49] Removed the string casting in attr_dump

Roland Haroutiounian 9 년 전
부모
커밋
f1a264ac59
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      EditorialModel/components.py

+ 1
- 1
EditorialModel/components.py 파일 보기

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

Loading…
취소
저장