def restore_translated_segments(self, value, segments):
    for segment in segments:
        if (segment.path == 'foo'):
            (field_a, field_b) = segment.render_text().split('/')
            value['field_a'] = field_a.strip()
            value['field_b'] = field_b.strip()
    return value
def restore_translated_segments(self, value, segments):
    for segment in segments:
        if (segment.path == 'foo'):
            (field_a, field_b) = segment.render_text().split('/')
            value['field_a'] = field_a.strip()
            value['field_b'] = field_b.strip()
    return value