(self, src_detail, attrs)
This method is used to overwrite a limited set of attributes
        based on a detail from another module and a list of attributes.

        This method is relevant only for short details.
This method is used to overwrite a limited set of attributes
        based on a detail from another module and a list of attributes.
This method is used to overwrite a limited set of attributes based on a detail from another module and a list of attributes .
def overwrite_attrs(self, src_detail, attrs):
        """
        This method is used to overwrite a limited set of attributes
        based on a detail from another module and a list of attributes.

        This method is relevant only for short details.
        """
        case_tile_configuration_list = [
            'use_case_tiles',
            'persist_tile_on_forms',
            'persistent_case_tile_from_module',
            'pull_down_tile',
            'persist_case_context',
            'persistent_case_context_xml',
        ]
        for attr in attrs:
            if attr == "case_tile_configuration":
                for ele in case_tile_configuration_list:
                    setattr(self, ele, getattr(src_detail, ele))
            else:
                setattr(self, attr, getattr(src_detail, attr))
def overwrite_attrs ( self , src_detail , attrs ) : case_tile_configuration_list = [ 'use_case_tiles' , 'persist_tile_on_forms' , 'persistent_case_tile_from_module' , 'pull_down_tile' , 'persist_case_context' , 'persistent_case_context_xml' , ] for attr in attrs : if attr == "case_tile_configuration" : for ele in case_tile_configuration_list : setattr ( self , ele , getattr ( src_detail , ele ) ) else : setattr ( self , attr , getattr ( src_detail , attr ) )