Browse Source

Some comments

prieto 8 years ago
parent
commit
38fda3ce43

+ 4
- 0
lodel/leapi/datahandlers/base_classes.py View File

@@ -351,6 +351,10 @@ class MultipleRef(Reference):
351 351
                             logger.info('The referenced object has to be updated')
352 352
         return l_value
353 353
     
354
+    ## @brief Checks the backreference, updates it if it is not complete
355
+    # @param emcomponent EmComponent : An EmComponent child class instance
356
+    # @param fname : the field name
357
+    # @param datas dict : dict storing fields values
354 358
     def make_consistency(self, emcomponent, fname, datas):
355 359
         dh = emcomponent.field(fname)
356 360
 

+ 1
- 0
lodel/leapi/datahandlers/references.py View File

@@ -116,6 +116,7 @@ class Map(MultipleRef):
116 116
                             br_list.append(br_id)
117 117
                             logger.info('The referenced object has to be updated')
118 118
         return l_value
119
+    
119 120
 ##@brief This Reference class is designed to handler hierarchy with some constraint
120 121
 class Hierarch(MultipleRef):
121 122
     

+ 5
- 0
lodel/leapi/leobject.py View File

@@ -490,6 +490,11 @@ construction and consitency when datas are not complete\n")
490 490
         if len(err_l) > 0:
491 491
             raise LeApiDataCheckError("Datas consistency checks fails", err_l)
492 492
     
493
+    ## @brief Check datas consistency
494
+    # 
495
+    # @warning assert that datas is complete
496
+    # @param cls
497
+    # @param datas dict : Datas that have been returned by LeCrud.prepare_datas() method
493 498
     @classmethod
494 499
     def make_consistency(cls, datas):
495 500
         for fname, dh in cls._fields.items():

Loading…
Cancel
Save