Yes, that is exactly the use-case: Someone copies a bundle to the journal and (if everything corresponds) voilá!<br><br>Another use-case could be while received from another sugar user (through send-to), and so on.<br><br>
What I explained in the previous email was just the general case, or what I could recall hehe...<br><br><div class="gmail_quote">On Tue, Feb 14, 2012 at 7:35 AM, Ajay Garg <span dir="ltr"><<a href="mailto:ajay@activitycentral.com">ajay@activitycentral.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Martin for the reply.<br>
<br>
So, the use-case of installation happening when the ".xo" is simply<br>
copied (say, from a pen-drive to the journal) is ok?<br>
I am not being judgemental, just wanting to know that if this is an<br>
already-discussed, accepted use-case.<br>
<br>
Regards,<br>
<font color="#888888">Ajay<br>
</font><div><div></div><div class="h5"><br>
On Tue, Feb 14, 2012 at 3:55 PM, Martin Abente<br>
<<a href="mailto:martin.abente.lahaye@gmail.com">martin.abente.lahaye@gmail.com</a>> wrote:<br>
> The journal is constantly watching for the new entries that are created or<br>
> updated. For every newly created or updated journal entry, it checks whether<br>
> or not this entry is a bundle (ie, an activity bundle).<br>
><br>
> IF this journal entry is an bundle, it checks if the activity is already<br>
> installed or not, if not installed, it just installs it.<br>
><br>
> That is basically how the magic activities installation works, IIRC.<br>
><br>
> On Tue, Feb 14, 2012 at 7:12 AM, Ajay Garg <<a href="mailto:ajay@activitycentral.com">ajay@activitycentral.com</a>> wrote:<br>
>><br>
>> Hi all.<br>
>><br>
>> I will be grateful, if someone could please let me know the purpose of<br>
>> the following method : (A somewhat step-by-step use-case explanation<br>
>> will be really useful :-) )<br>
>><br>
>> """<br>
>> def _check_for_bundle(self, object_id)<br>
>> """<br>
>><br>
>> in "/usr/lib/python2.7/site-packages/jarabe/journal/journalactivity.py".<br>
>><br>
>><br>
>><br>
>> Regards,<br>
>> Ajay<br>
>> _______________________________________________<br>
>> Sugar-devel mailing list<br>
>> <a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
>> <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
><br>
><br>
</div></div></blockquote></div><br>