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

Noen TODO-er.

This commit is contained in:
Øystein Ingmar Skartsæterhagen 2011-03-05 18:07:16 +00:00
parent 8bc552c488
commit 804ef55192
1 changed files with 3 additions and 2 deletions

View File

@ -13,6 +13,7 @@ import search
def show_book_or_person(ids, commit_format=False, tmp_file=False): def show_book_or_person(ids, commit_format=False, tmp_file=False):
for id in ids: for id in ids:
object = get_book_or_person(id) object = get_book_or_person(id)
# TODO: skriv ut mer informasjon
print object print object
def get_book_or_person(id): def get_book_or_person(id):
@ -79,12 +80,12 @@ def search_person(search_strings, search_description=False):
Q(books__book__id__id__icontains=word)) Q(books__book__id__id__icontains=word))
return remove_duplicates(basic_query.all()) return remove_duplicates(basic_query.all())
def commit(filename=None): def commit(filename=None): # TODO
pass pass
def edit_book_or_person(ids): def edit_book_or_person(ids):
filename = show_book_or_person(ids, commit_format=True, tmp_file=True) filename = show_book_or_person(ids, commit_format=True, tmp_file=True)
# run_editor(filename) # run_editor(filename) # TODO: må implementeres
commit(filename) commit(filename)
commands = { 'show': commands = { 'show':