Closed nswarup14 closed 5 years ago
I'm confused. Which line of code installs the bundle?
@quozl Sorry for the late response.
I have been working on this since yesterday, and these are what I have found.
self.create_journal_object
method. As the download progresses, the journal entry is update by _update_progress
handler.__download_finished_cb
handler, updates the metadata for the journal entry created earlier, and writes it to the journal once again. This entry is the .xo activity bundle.launch_bundle
. I believe get_bundle
also installs the activity. The reasoning is that get_bundle
always returns None
for me. I checked the shell.log
after each download, the log file say that No bundle in activity.info
. Yet the activity is installed and I can see it in the favourite view.Show in Journal
is no longer required. Show in Journal
only works if the journal contains the entry, but if we are removing it after activity install, then the option has no meaning.Kindly advise on how to proceed.
I feel the Show in Journal
option be removed from the alert. I believe that it was added incase no bundle_id was returned to launch the activity from Browse directly.
Thanks
Thanks. Because this coded behaviour covers the toolkit, the Sugar shell, and the activity, we'll use the issue to discuss how to change it.
Fixes #81 Changes 1)
downloadmanager.py
Updates On downloading a new activity, from
activities.sugarlabs.org
, the activity bundle is installed and the activity bundle is deleted from the journal.Reason why the activity bundle was being shown in the journal is that, it was never removed from journal before. One side effect is that on deleting the activity bundle from the journal, the
Show in Journal
option returns immediately to the journal, and does not display the details of the activity.Is there a way to remove the activity bundle from the journal, without losing the
Show in Journal
option.Thanks