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

View File

@ -303,7 +303,7 @@ def do_action(connection, action):
'new-category': q_new_category,
'edit-category': q_edit_category}
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']:
print 'FIXING PERSONS: REMOVING'
c.execute(q_remove_bookpersons, {'isbn': action['isbn']})
@ -343,7 +343,10 @@ def commit(connection, filename=None):
commit_actions(connection, actions)
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):
pass