Browse Source

Correction d_hash

prieto 8 years ago
parent
commit
d2a570ca45
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      lodel/editorial_model/components.py

+ 7
- 1
lodel/editorial_model/components.py View File

@@ -132,7 +132,8 @@ class EmClass(EmComponent):
132 132
 
133 133
     def d_hash(self):
134 134
         m = hashlib.md5()
135
-        payload = str(super().d_hash()) + ("1" if self.abstract else "0")
135
+        payload = str(super().d_hash())  + ("1" if self.abstract else "0") 
136
+
136 137
         for p in sorted(self.parents):
137 138
             payload += str(p.d_hash())
138 139
         for fuid in sorted(self.__fields.keys()):
@@ -186,6 +187,10 @@ class EmField(EmComponent):
186 187
     def get_data_handler_cls(self):
187 188
         return copy.copy(selfdata_handler_cls)
188 189
     
190
+    ##@brief Returne the uid of the emclass which contains this field
191
+    def get_emclass_uid(self):
192
+        return self._emclass.uid
193
+    
189 194
     # @warning Not complete !
190 195
     # @todo Complete the hash when data handlers becomes available
191 196
     def d_hash(self):
@@ -305,6 +310,7 @@ class EmGroup(object):
305 310
         
306 311
     ##@brief Add a applicant
307 312
     # @param em_group EmGroup|iterable : an EmGroup instance or list of instance
313
+    # Useless ???
308 314
     def add_applicant(self, grp):
309 315
         try:
310 316
             for group in grp:

Loading…
Cancel
Save