Fikset en feil i show.
This commit is contained in:
parent
dcb6982d24
commit
6d50951cf0
|
@ -85,7 +85,9 @@ def show(connection, ids, commit_format=False, tmp_file=False):
|
||||||
for i in range(len(ids)):
|
for i in range(len(ids)):
|
||||||
if not objects[i]:
|
if not objects[i]:
|
||||||
objects[i] = 'No object with id %s.\n' % ids[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,
|
show_funs = {'book': show_book,
|
||||||
'person': show_person,
|
'person': show_person,
|
||||||
'category': show_category}
|
'category': show_category}
|
||||||
|
|
Reference in New Issue