Fikset noen småting i show_book_or_person.

This commit is contained in:
Øystein Ingmar Skartsæterhagen 2011-03-06 12:55:59 +00:00
parent 80c58558cd
commit ae465733f6

View File

@ -18,7 +18,7 @@ def show_book_or_person(ids, commit_format=False, tmp_file=False):
objects = map(get_book_or_person, ids)
for i in range(len(ids)):
if not objects[i]:
objects[i] = 'No book or person with id %s.' % id
objects[i] = 'No book or person with id %s.\n' % ids[i]
elif commit_format:
objects[i] = objects[i].to_dict()
else: