def is_form_processed(self, form_id, user_id):
     processed = self._get_processed_forms()
     return deep_seek(processed, [form_id, user_id], False)
 def load_form(self, form_id, user_id):
     """ Fetches the values the user entered for a given form.
     """
     values = self._get_saved_values()
     return dict(deep_seek(values, [form_id, user_id], {}).items())
 def get_saved_version(self, form_id, user_id):
     """ Returns the saved version of the form.
     """
     versions = self._get_saved_versions()
     return deep_seek(versions, [form_id, user_id], -1)