Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate

Commit 175736b98277b5aa256711dd88c504ae159e70fd

Fix clean-up (temporary files, thumbnails) after saving

sugar.datastore.datastore.create() still cannot be called asynchronously, so
we need to "emulate" it.
scan.py
(11 / 3)
  
692692 # TODO: add tags, description etc.
693693 jobject.file_path = name
694694 self._save_button.set_sensitive(False)
695 datastore.write(jobject, transfer_ownership=True,
696 reply_handler=self._save_reply_cb,
697 error_handler=self._save_error_cb)
695 # async not supported, see SL#3071
696 #datastore.write(jobject, transfer_ownership=True,
697 # reply_handler=self._save_reply_cb,
698 # error_handler=self._save_error_cb)
699 try:
700 datastore.write(jobject, transfer_ownership=True)
701 except Exception, exception:
702 self._save_error_cb(exception)
703 else:
704 self._save_reply_cb()
705
698706 jobject.destroy()
699707
700708 @trace()