View Single Post
Old 08-05-2013, 03:33 PM   #150
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,464
Karma: 27757440
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes, that is the only recommendation, so far.

proceed_question() was never only about thread safety, since the updates all happen in the gui thread anyway. So you still need to use it. Think about what happens if the user has the edit metadata dialog open for a book that you are updating in the background, either the users' changes or yours would get obliterated.

Considering that this new api took almost two years to develop, I dont think I will ever do this again But, if I do, I'll deal with any resulting confusion.

If you wish to check for the new api, just do hasattr(db, 'new_api')
kovidgoyal is offline   Reply With Quote