Reinserted some code that disappeared mysteriously.
This commit is contained in:
parent
d885f9a1d3
commit
6d112dd1c2
|
@ -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
|
||||
|
|
Reference in New Issue