Browse Source

[EmComponent] added a test to not take uids into account in the hash computation process

Roland Haroutiounian 9 years ago
parent
commit
113deb302d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      EditorialModel/components.py

+ 1
- 1
EditorialModel/components.py View File

@@ -52,7 +52,7 @@ class EmComponent(object):
52 52
     ## @brief Return a dict with attributes name as key and attributes value as value
53 53
     # @note Used at creation and deletion to call the migration handler
54 54
     def attr_dump(self):
55
-        return { fname : fval for fname, fval in self.__dict__.items() if not fname.startswith('__') }
55
+        return {fname: fval for fname, fval in self.__dict__.items() if not (fname.startswith('__') or (fname == 'uid'))}
56 56
         
57 57
     ## @brief This function has to be called after the instanciation, checks, and init manipulations are done
58 58
     # @note Create a new attribute _inited that allow __setattr__ to know if it has or not to call the migration handler

Loading…
Cancel
Save