diff --git a/cli/worblehat.py b/cli/worblehat.py index dd0681c..715ec9b 100755 --- a/cli/worblehat.py +++ b/cli/worblehat.py @@ -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