[Bugs] #1786 UNSP: cannot launch activity if multiple data store entries have the same activity_id

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Thu Mar 4 13:52:20 EST 2010


#1786: cannot launch activity if multiple data store entries have the same
activity_id
------------------------------------------+---------------------------------
    Reporter:  sascha_silbe               |          Owner:  erikos           
        Type:  defect                     |         Status:  new              
    Priority:  Unspecified by Maintainer  |      Milestone:  0.88             
   Component:  sugar-toolkit              |        Version:  Git as of bugdate
    Severity:  Unspecified                |       Keywords:                   
Distribution:  Unspecified                |   Status_field:  New              
------------------------------------------+---------------------------------
 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 {{{DSObject}}}s 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_id}}}s.

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/1786>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list