Projects/worblehat-old
Projects
/
worblehat-old
Archived
12
0
Fork 0

Fikset en feil i show.

This commit is contained in:
Øystein Ingmar Skartsæterhagen 2011-10-08 11:40:43 +00:00
parent dcb6982d24
commit 6d50951cf0
1 changed files with 3 additions and 1 deletions

View File

@ -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}