Thanks for the prompt reply, again. I don't know how you have the patience.
Adding the missing "self" does not resolve the problem though, sadly:
Xlib: extension "GLX" missing on display ":0.0".
Code:
Could not initialize OpenGL for RasterGLSurface, reverting to RasterSurface.
Worker Launch took: 0.129006147385
Job: 1 Read metadata (0 of 1) finished
Read metadata (0 of 1)
RatingReset::loaded
RatingReset::run(/home/skx/tmp/tmp.epub)
Again the run method is called, but the postimport is not:
Code:
def run(self, path_to_ebook):
print "RatingReset::run(%s)" % path_to_ebook
return path_to_ebook
def postimport(self, book_id, book_format, db):
print "RatingReset::postimport()"
db.new_api.set_field('rating', {book_id:0})