Browse Source

Some comments

prieto 8 years ago
parent
commit
38fda3ce43

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

351
                             logger.info('The referenced object has to be updated')
351
                             logger.info('The referenced object has to be updated')
352
         return l_value
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
     def make_consistency(self, emcomponent, fname, datas):
358
     def make_consistency(self, emcomponent, fname, datas):
355
         dh = emcomponent.field(fname)
359
         dh = emcomponent.field(fname)
356
 
360
 

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

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

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

490
         if len(err_l) > 0:
490
         if len(err_l) > 0:
491
             raise LeApiDataCheckError("Datas consistency checks fails", err_l)
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
     @classmethod
498
     @classmethod
494
     def make_consistency(cls, datas):
499
     def make_consistency(cls, datas):
495
         for fname, dh in cls._fields.items():
500
         for fname, dh in cls._fields.items():

Loading…
Cancel
Save