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

Endret indikatoren for at en streng er kuttet i boksøk.

This commit is contained in:
Øystein Ingmar Skartsæterhagen 2011-03-04 13:11:21 +00:00
parent e9e508d1eb
commit 466e3fefe4
1 changed files with 2 additions and 2 deletions

View File

@ -9,10 +9,10 @@ def search_book_cmd(search_strings, search_description=False):
format = '%-13s %-10s %-40s %-30s'
for book in books:
b_id = book.getid() or ''
title = cut_str(book.title, 40)
title = cut_str(book.title, 40, '*')
authors = map(lambda p: p.first_name+' '+p.last_name,
book.get_authors())
authors_str = cut_str(', '.join(authors), 30)
authors_str = cut_str(', '.join(authors), 30, '*')
print format % (book.isbn, b_id, title, authors_str)
def search_book(search_strings, search_description=False):