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

Reinserted some code that disappeared mysteriously.

This commit is contained in:
Øystein Ingmar Skartsæterhagen 2011-10-09 13:23:42 +00:00
parent d885f9a1d3
commit 6d112dd1c2
1 changed files with 5 additions and 2 deletions

View File

@ -303,7 +303,7 @@ def do_action(connection, action):
'new-category': q_new_category, 'new-category': q_new_category,
'edit-category': q_edit_category} 'edit-category': q_edit_category}
action_type = action['action'] action_type = action['action']
c.execute(queries[action_type], action) execute_query(c, queries[action_type], action)
if action_type in ['new-book', 'edit-book']: if action_type in ['new-book', 'edit-book']:
print 'FIXING PERSONS: REMOVING' print 'FIXING PERSONS: REMOVING'
c.execute(q_remove_bookpersons, {'isbn': action['isbn']}) c.execute(q_remove_bookpersons, {'isbn': action['isbn']})
@ -343,7 +343,10 @@ def commit(connection, filename=None):
commit_actions(connection, actions) commit_actions(connection, actions)
def edit(connection, ids): def edit(connection, ids):
pass filename = show(connection, ids, commit_format=True, tmp_file=True)
print filename
run_editor(filename)
commit(connection, filename)
def map_cmd(connection, shelfname=None, category=None): def map_cmd(connection, shelfname=None, category=None):
pass pass