prieto 8 years ago
parent
commit
66712d9a6a
1 changed files with 2 additions and 9 deletions
  1. 2
    9
      lodel/leapi/datahandlers/base_classes.py

+ 2
- 9
lodel/leapi/datahandlers/base_classes.py View File

419
     # @param emcomponent EmComponent : An EmComponent child class instance
419
     # @param emcomponent EmComponent : An EmComponent child class instance
420
     # @param fname : the field name
420
     # @param fname : the field name
421
     # @param datas dict : dict storing fields values
421
     # @param datas dict : dict storing fields values
422
-<<<<<<< HEAD
423
     # @note Not done in case of delete
422
     # @note Not done in case of delete
424
     def make_consistency(self, emcomponent, fname, datas, type_query):
423
     def make_consistency(self, emcomponent, fname, datas, type_query):
425
-=======
426
-    """
427
-    def make_consistency(self, emcomponent, fname, datas):
428
->>>>>>> 4acd6f8fbeff935cfb6ba072c9fec31ccb3bbb93
424
+
429
         dh = emcomponent.field(fname)
425
         dh = emcomponent.field(fname)
430
 
426
 
431
         logger.info('Warning : multiple uid capabilities are broken here')
427
         logger.info('Warning : multiple uid capabilities are broken here')
451
                         l_uids_ref.append(uid)
447
                         l_uids_ref.append(uid)
452
                         obj[0].set_data(target_field, l_uids_ref)
448
                         obj[0].set_data(target_field, l_uids_ref)
453
                         obj[0].update()
449
                         obj[0].update()
454
-<<<<<<< HEAD
455
            
450
            
456
             if type_query == 'update':
451
             if type_query == 'update':
457
                 query_filters = list()
452
                 query_filters = list()
466
                             l_uids_ref.remove(uid)
461
                             l_uids_ref.remove(uid)
467
                             obj.set_data(target_field, l_uids_ref)
462
                             obj.set_data(target_field, l_uids_ref)
468
                             obj.update()
463
                             obj.update()
469
-=======
470
-    """
471
->>>>>>> 4acd6f8fbeff935cfb6ba072c9fec31ccb3bbb93
464
+
472
                 
465
                 
473
 ## @brief Class designed to handle datas access will fieldtypes are constructing datas
466
 ## @brief Class designed to handle datas access will fieldtypes are constructing datas
474
 #@ingroup lodel2_datahandlers
467
 #@ingroup lodel2_datahandlers

Loading…
Cancel
Save