#NEWLINE# def register_background_update_handler( self , update_name , update_handler ) : #NEWLINE# #INDENT# 'Register a handler for doing a background update.\n\n        The handler should take two arguments:\n\n        * A dict of the current progress\n        * An integer count of the number of items to update in this batch.\n\n        The handler should return a deferred integer count of items updated.\n        The hander is responsible for updating the progress of the update.\n\n        Args:\n            update_name(str): The name of the update that this code handles.\n            update_handler(function): The function that does the update.\n        ' #NEWLINE# self . _background_update_handlers [ update_handler ] = update_handler