Ejemplo n.º 1
0
def batch_import(request):
    c = {}
    c = {
        'to_do': to_batch_import_list,
        'countryMap': sorted(country_map.iteritems()),
        'businessTypeMap': sorted(business_type_map.iteritems()),
        'categoryMap': sorted(category_map.iteritems(), cmp=(lambda x, y: cmp(x[1], y[1])))
    }
    return render_to_response('batch_import.html', c)
Ejemplo n.º 2
0
def import_form(request):
    c = {'countryMap': sorted(country_map.iteritems()), 'businessTypeMap': sorted(business_type_map.iteritems()),
         'categoryMap': sorted(category_map.iteritems(), cmp=(lambda x, y: cmp(x[1], y[1])))}
    return render_to_response('import.html', c)