Ticket #2698 (closed task: fixed)

Opened 7 years ago

Last modified 7 years ago

.xol files in build

Reported by: lauren Owned by: lauren
Priority: normal Milestone: Trial-3
Component: olpc library Version:
Keywords: Cc: danw, lauren
Action Needed: Verified: no
Deployments affected: Blocked By:
Blocking:

Description

Here on the content team, we've been working on a spec for content bundles:

http://wiki.laptop.org/go/Content_bundles

and we've been pretty successful in getting content providers to package their content according to the new format.

For Trial 3, we'd like to have Sugar know what to do with the new .xol files. This means:

*Having .xol files automatically unizipped into /home/olpc/Library

*Running /home/olpc/Library/makeIndex.py each time a new .xol file is unzipped. The python script can be found here: http://dev.laptop.org/git?p=projects/content-bundler;a=tree

The script generates a file: config.js that Browse uses to generate the navigation sidebar.

Change History

  Changed 7 years ago by marco

From where installation of the content bundles will happen? Web browser downloads, journal (usb key), both?

  Changed 7 years ago by cscott

Related to bug #2856.

  Changed 7 years ago by marco

Discussed with Eben a bit, we think interaction should be very similar to activity bundles:

1 Download a bundle with the web activity -> automatically saved to the journal 2 When a content bundle is saved to the journal it's also installed in the library path 3 When the bundle is removed from the journal it's also uninstalled from the library path

As an optimization we could later make the bundle in the journal just a reference to the installed one, to avoid wasting space. That would also make handling of the object more complex, obviously.

  Changed 7 years ago by marco

  • status changed from new to closed
  • resolution set to duplicate

cscott yeah, it's a dup

follow-up: ↓ 6   Changed 7 years ago by danw

  • cc danw added

Lauren, can you point me to some .xol bundles I can use for testing?

in reply to: ↑ 5 ; follow-up: ↓ 7   Changed 7 years ago by lauren

  • cc lauren added

Replying to danw:

Lauren, can you point me to some .xol bundles I can use for testing?

See: http://wiki.laptop.org/go/Content_grid_for_T3#Content_Bundles

in reply to: ↑ 6 ; follow-up: ↓ 10   Changed 7 years ago by danw

  • status changed from closed to reopened
  • resolution deleted
  • component changed from sugar to olpc library

Replying to lauren:

See: http://wiki.laptop.org/go/Content_grid_for_T3#Content_Bundles

All of the bundle links on that page are broken ("No handler matched request to /pub/content/library/icdl.xol" etc).

I also found http://wiki.laptop.org/go/Library_grid, which has some of the same broken links, plus links to a bunch of bundles at http://arael.shtooka.net/olpc/ that don't obey the spec (they don't put all of the file inside the bundle underneath a toplevel "whatever.xol" directory).

follow-up: ↓ 9   Changed 7 years ago by danw

  • owner changed from dcbw to lauren
  • status changed from reopened to new

in reply to: ↑ 8   Changed 7 years ago by lauren

Replying to danw:

Links fixed. Try this again: http://wiki.laptop.org/go/Content_grid_for_T3#Content_Bundles

in reply to: ↑ 7   Changed 7 years ago by danw

  • status changed from new to closed
  • resolution set to fixed

OK, thanks. I updated the "Creating a content bundle" page on the wiki a bit to match the way you're building the bundles (top-level directory name *does not* have ".xol" at the end like in example), and to clarify that having everything under a single top-level directory is mandatory.

(Actual installation stuff is back at bug #2856 again)

  Changed 7 years ago by lauren

I made both the spec and the bundles, so it's only me to blame! The content bundle format was designed to mirror activity bundle format-- so should all content bundles be unzipped from "bundle.xol" to "bundle.library" in the same way that activities go from .xo to .activity? What do you think?

Note: See TracTickets for help on using tickets.