From 6d112dd1c28c8743e6d93c9c6524fbc3dcbe2cab Mon Sep 17 00:00:00 2001 From: oysteini Date: Sun, 9 Oct 2011 13:23:42 +0000 Subject: [PATCH] Reinserted some code that disappeared mysteriously. --- cli/worblehat.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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