Ticket #1786 (accepted defect)
oversight in sugar.activity.activityfactory.ActivityCreationHandler._find_object_reply_handler()
| Reported by: | sascha_silbe | Owned by: | sascha_silbe |
|---|---|---|---|
| Priority: | Normal | Milestone: | 0.90 |
| Component: | sugar-toolkit | Version: | Git as of bugdate |
| Severity: | Unspecified | Keywords: | r? |
| Cc: | Distribution/OS: | Unspecified | |
| Bug Status: | New |
Description
Happened to me during testing the version support prototype; I am too lazy to reproduce it on the master branch right now but it should be obvious enough anyway.
sugar.activity.activityfactory.ActivityCreationHandler}} has been changed to use {{{sugar.datastore.datastore instead of interfacing with directly via D-Bus. A part of _find_object_reply_handler() was missed during the conversion:
def _find_object_reply_handler(self, jobjects, count):
if count > 0:
if count > 1:
logging.debug("Multiple objects has the same activity_id.")
self._handle.object_id = jobjects[0]['uid']
self._launch_activity()
jobjects is a list os DSObjects now, so we need to to use jobjects[0].metadata['uid'].
I guess the proper fix would be to pass data store object ids (uid resp. (tree_id, version_id)) instead of activity_ids.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

