From: khamidou Date: Thu, 18 Feb 2010 16:06:00 +0000 (+0100) Subject: liszt update is less strict now X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=d429694bcc3c9e8b06e497a069f8b95a6f15cab2;p=liszt.git liszt update is less strict now --- diff --git a/liszt b/liszt index 01f6f4a..3baeb33 100755 --- a/liszt +++ b/liszt @@ -252,10 +252,12 @@ class CommandParser(object): fields = line.split("\t") if len(fields) != 3: - bailout("Error at line %d : one of the fields is not correctly formatted." % i) - - dict = {"request" : "create-entry", "listname" : listname, - "index" : i, "contents" : {"title" : fields[0], "date" : fields[1], "done": fields[2]}} + # Then, only take the first field : + dict = {"request" : "create-entry", "listname" : listname, + "index" : i, "contents" : {"title" : fields[0]}} + else: + dict = {"request" : "create-entry", "listname" : listname, + "index" : i, "contents" : {"title" : fields[0], "date" : fields[1], "done": fields[2]}} create_spool_file(dict)