(self, domain, doc_id, doc, base_path, split_column=False, **kwargs)
return row
Get the value of self.item of the given doc.
        When base_path is [], doc is a form submission or case,
        when base_path is non empty, doc is a repeat group from a form submission.
        doc is a form submission or instance of a repeat group in a submission or case
Get the value of self.item of the given doc.
        When base_path is [], doc is a form submission or case,
        when base_path is non empty, doc is a repeat group from a form submission.
        doc is a form submission or instance of a repeat group in a submission or case
Get the value of self . item of the given doc . When base_path is [] doc is a form submission or case when base_path is non empty doc is a repeat group from a form submission . doc is a form submission or instance of a repeat group in a submission or case
def get_value(self, domain, doc_id, doc, base_path, split_column=False, **kwargs):
        """
        Get the value of self.item of the given doc.
        When base_path is [], doc is a form submission or case,
        when base_path is non empty, doc is a repeat group from a form submission.
        doc is a form submission or instance of a repeat group in a submission or case
        """
        value = super(SplitExportColumn, self).get_value(domain, doc_id, doc, base_path, **kwargs)
        if not split_column:
            return value

        if value == MISSING_VALUE:
            value = [MISSING_VALUE] * len(self.item.options)
            if not self.ignore_unspecified_options:
                value.append(MISSING_VALUE)
            return value

        if not isinstance(value, str):
            unspecified_options = [] if self.ignore_unspecified_options else [value]
            return [EMPTY_VALUE] * len(self.item.options) + unspecified_options

        selected = OrderedDict((x, 1) for x in value.split(" "))
        row = []
        for option in self.item.options:
            row.append(selected.pop(option.value, EMPTY_VALUE))
        if not self.ignore_unspecified_options:
            row.append(" ".join(selected))
        return row
def get_value ( self , domain , doc_id , doc , base_path , split_column = False , * * kwargs ) : value = super ( SplitExportColumn , self ) . get_value ( domain , doc_id , doc , base_path , * * kwargs ) if not split_column : return value if value == MISSING_VALUE : value = [ MISSING_VALUE ] * len ( self . item . options ) if not self . ignore_unspecified_options : value . append ( MISSING_VALUE ) return value if not isinstance ( value , str ) : unspecified_options = [ ] if self . ignore_unspecified_options else [ value ] return [ EMPTY_VALUE ] * len ( self . item . options ) + unspecified_options selected = OrderedDict ( ( x , 1 ) for x in value . split ( " " ) ) row = [ ] for option in self . item . options : row . append ( selected . pop ( option . value , EMPTY_VALUE ) ) if not self . ignore_unspecified_options : row . append ( " " . join ( selected ) ) return row