Opened 8 years ago

Closed 8 years ago

Last modified 6 weeks ago

#2698 closed task (fixed)

.xol files in build

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

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 (12)

comment:1 Changed 8 years ago by marco

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

comment:2 Changed 8 years ago by cscott

Related to bug #2856.

comment:3 Changed 8 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.

comment:4 Changed 8 years ago by marco

  • Resolution set to duplicate
  • Status changed from new to closed

cscott yeah, it's a dup

comment:5 follow-up: Changed 8 years ago by danw

  • Cc danw added

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

comment:6 in reply to: ↑ 5 ; follow-up: Changed 8 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

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

  • Component changed from sugar to olpc library
  • Resolution duplicate deleted
  • Status changed from closed to reopened

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).

comment:8 follow-up: Changed 8 years ago by danw

  • Owner changed from dcbw to lauren
  • Status changed from reopened to new

comment:9 in reply to: ↑ 8 Changed 8 years ago by lauren

comment:10 in reply to: ↑ 7 Changed 8 years ago by danw

  • Resolution set to fixed
  • Status changed from new to closed

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)

comment:11 Changed 8 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?

comment:12 Changed 6 weeks ago by Quozl

  • Milestone Trial-3 deleted

Milestone Trial-3 deleted

Note: See TracTickets for help on using tickets.