(self, table, properties, top=True, **column_initialization_data)
Inserts system properties into the table configuration

        :param table: A TableConfiguration instance
        :param properties: A list of ExportColumn that represent system properties to be added to the table
        :param top: When True inserts the columns at the top, when false at the bottom
        :param column_initialization_data: Extra data to be passed to the column if needed on initialization
Inserts system properties into the table configuration
Inserts system properties into the table configuration
def __insert_system_properties(self, table, properties, top=True, **column_initialization_data):
        """
        Inserts system properties into the table configuration

        :param table: A TableConfiguration instance
        :param properties: A list of ExportColumn that represent system properties to be added to the table
        :param top: When True inserts the columns at the top, when false at the bottom
        :param column_initialization_data: Extra data to be passed to the column if needed on initialization
        """
        properties = list(map(copy, properties))
        if top:
            properties = reversed(properties)

        insert_fn = self._get_insert_fn(table, top)

        domain = column_initialization_data.get('domain')
        for static_column in properties:
            index, existing_column = table.get_column(
                static_column.item.path,
                static_column.item.doc_type,
                static_column.item.transform,
            )
            column = (existing_column or static_column)
            if isinstance(column, RowNumberColumn):
                column.update_nested_repeat_count(column_initialization_data.get('repeat'))
            elif isinstance(column, StockExportColumn):
                column.update_domain(domain)

            if not existing_column:
                if static_column.label in ['case_link', 'form_link'] and self.get_id:
                    static_column.selected = False
                insert_fn(static_column)
def __insert_system_properties ( self , table , properties , top = True , * * column_initialization_data ) : properties = list ( map ( copy , properties ) ) if top : properties = reversed ( properties ) insert_fn = self . _get_insert_fn ( table , top ) domain = column_initialization_data . get ( 'domain' ) for static_column in properties : index , existing_column = table . get_column ( static_column . item . path , static_column . item . doc_type , static_column . item . transform , ) column = ( existing_column or static_column ) if isinstance ( column , RowNumberColumn ) : column . update_nested_repeat_count ( column_initialization_data . get ( 'repeat' ) ) elif isinstance ( column , StockExportColumn ) : column . update_domain ( domain ) if not existing_column : if static_column . label in [ 'case_link' , 'form_link' ] and self . get_id : static_column . selected = False insert_fn ( static_column )