[sugar] content bundle development

Walter Bender walter.bender at gmail.com
Sun Oct 5 15:14:58 EDT 2008


There is a discussion thread about how to best handle PDF files here:

http://lists.laptop.org/pipermail/library/2008-October/000847.html

The problems you have identified are exactly the ones being discussed.
There are three basic issues: "downloading" extra copies; the need to
open through the Journal instead of directly; and the deletion
question.

Re extra copies, that is an artifact of not recognizing when file is
already present. This problem should go away in the next iteration of
the datastore.
Re opening from the Journal, this is purposeful as part of a
compromise we made in light of security concerns (See
http://wiki.laptop.org/go/OLPC_Bitfrost#P_DOCUMENT:_file_store_service).
However, we are working on taking first one and eventually two steps
out of this process.
Re the deletion question, this is a bug related to the download question.

-walter

On Sun, Oct 5, 2008 at 2:42 PM, Philippe Clérié <philippe at gcal.net> wrote:
> Thanks! That worked.
>
> But there are a few problems. I don't mind so much the extra clicks
> necessary to install the xol, but everytime I click on the bundle's
> name in the Browse activity, it _downloads_ the file. If the file is
> already on disk why the extra downloads?
>
> Next, the Reader activity does not automatically start after the
> download. I have to click on Open to do that. And if I click on OK, the
> download bar closes, and nothing happens. The natural thing to do seems
> to be to restart, i.e. click on the bundle's name again.
>
> All these downloads seem to remain in the journal taking up space until
> deleted.
>
> Last comment is that deleting the bundle in the Journal also deletes it
> from the XO, which is not exactly what I expected.
>
>
> Philippe
>
> ------
> The trouble with common sense is that it is so uncommon.
> <Anonymous>
>
>
> On Sunday 05 October 2008 11:48:34 Walter Bender wrote:
>> You should only need an index.html file that points to your PDF.
>>
>> <html>
>> <meta http-equiv="refresh"
>> content="0;url=file:///home/olpc/Library/[bundle name]/[PDF
>> name].pdf">
>> </html>
>>
>> In the library/library.info file, there should be an activity_start
>> entry as per:
>>
>> activity_start = index.html
>>
>> In theory, make_index.py reads this line from the info file when
>> generating its index.
>>
>> -walter
>>
>> On Sun, Oct 5, 2008 at 12:35 PM, Philippe Clérié <philippe at gcal.net>
> wrote:
>> > I made a content bundle with a single pdf following the
>> > instructions at http://wiki.laptop.org/go/Content_bundles. I then
>> > downloaded said bundle with the browser, went to the journal and
>> > resumed. After refreshing the browser home page, my bundle was
>> > listed under [Books] on the left side. But when I click on it, I
>> > get a browser error with the following message:
>> >
>> > The file /home/olpc/.library_pages/<bundle name>/bundle_index.html
>> > cannot be found. Please check the location and try again.
>> >
>> > Running /usr/share/library-common/make_index.py makes no
>> > difference.
>> >
>> > The instructions appear to be missing something. Are there any
>> > updated instructions?
>> >
>> > Thanks
>> > Philippe
>> >
>> > ------
>> > The trouble with common sense is that it is so uncommon.
>> > <Anonymous>
>> > _______________________________________________
>> > Sugar mailing list
>> > Sugar at lists.laptop.org
>> > http://lists.laptop.org/listinfo/sugar
>
>
>



-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org


More information about the Sugar mailing list