From 6d50951cf0a1124ec7bef3b2432e5716065f7bfd Mon Sep 17 00:00:00 2001 From: oysteini Date: Sat, 8 Oct 2011 11:40:43 +0000 Subject: [PATCH] Fikset en feil i show. --- cli/worblehat.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/worblehat.py b/cli/worblehat.py index 8a34db5..8ee8d69 100644 --- a/cli/worblehat.py +++ b/cli/worblehat.py @@ -85,7 +85,9 @@ def show(connection, ids, commit_format=False, tmp_file=False): for i in range(len(ids)): if not objects[i]: objects[i] = 'No object with id %s.\n' % ids[i] - elif not commit_format: + elif commit_format: + objects[i]['action'] = 'edit-%s' % objects[i]['type'] + else: show_funs = {'book': show_book, 'person': show_person, 'category': show_category}