Exemple #1
0
 def split_m2m_id_fun(line):
     """ Return a list of unique element (xml_id, name)
     """
     map_list = list_to_mapper(args)
     value = ','.join(
         [to_m2m(PREFIX, m(line))
          for m in map_list if m(line)] + const_values)
     s = []
     for val in value.split(','):
         if val.strip():
             s.append(val)
     return s
Exemple #2
0
 def m2m_fun(line):
     return to_m2m(PREFIX, mapper(line))
Exemple #3
0
 def m2m_fun(line):
     return ','.join([to_m2m(PREFIX, line[f]) for f in args if line[f]])