Hello, Is it possible the table csv import method be broken?
When I use list:reference type field I can't import back a exported CSV with the appadmin. I don't understand where the None value could come from... When I try to implement my own csv import function base on this thread : https://groups.google.com/forum/?fromgroups#!topic/web2py/lDi0lLK_Wm0 That work fine, until I try to import data with list:reference type field (|id| or |id|id|, etc.) I get this traceback : for v in bar_decode_string(value)] TypeError: 'NoneType' object is unsubscriptable - Function argument list (field=<gluon.dal.Field object>, value='|35|1|', id_map=None) Code listing 5683. 5684. 5685. 5686. 5687. 5688. 5689. 5690. 5691. 5692. elif field.type.startswith('list:string'): value = bar_decode_string(value) elif field.type.startswith(list_reference_s): ref_table = field.type[len(list_reference_s):].strip() value = [id_map[ref_table][int(v)] \ for v in bar_decode_string(value)] elif field.type.startswith('list:'): value = bar_decode_integer(value) elif id_map and field.type.startswith('reference'): try: Variablesglobal bar_decode_string<function bar_decode_string>value'|35|1|'v '35' What is exactly id_map? I think problem is coming from there... Thanks Richard

