Example #1
0
    def save_csv(data, title=None, path="csv_test.csv"):
        if not title:
            title = ["name", "age", "telephone"]
        csv_file = file(path, "wb")
        writer = csv.writer(csv_file)

        utf_title = Characters.unicode_to_concrete(title)
        writer.writerow(utf_title)
        utf_data = Characters.unicode_to_concrete(data)
        writer.writerow(utf_data)

        csv_file.close()