#2923 BLOC Trial-3: makeIndex.py needs to be updated and optimized
Zarro Boogs per Child
bugtracker at laptop.org
Tue Sep 25 08:04:29 EDT 2007
#2923: makeIndex.py needs to be updated and optimized
----------------------+-----------------------------------------------------
Reporter: lauren | Owner: sj
Type: task | Status: new
Priority: blocker | Milestone: Trial-3
Component: library | Version:
Resolution: | Keywords:
Verified: 0 |
----------------------+-----------------------------------------------------
Changes (by erikos):
* cc: mako (added)
* owner: Simon => sj
Comment:
1) Those should change:
library_path = '/var/www/content/proto/tmpl-Library/Library' #TODO TURN ME
OFF
base_url = 'http://dev.laptop.org/pub/content/proto/tmpl-Library/Library'
# TODO TURN ME OFF TOO
to this to work on the xo:
library_path = env.get_user_library_path()
base_url = library_path
2) all the bundles i downloaded
(http://dev.laptop.org/pub/content/newlibrary/icdl.xol,
http://dev.laptop.org/~arael/bundles/bible-en.xol,...) did not work
a) the category does not exist in the categories.info file, so what do you
want to do in this case, make a new category? Or add to misc?
{{{
[erikos at localhost Library]$ python makeIndex.py
Traceback (most recent call last):
File "makeIndex.py", line 83, in <module>
category_data[new_bundle['category']]['bundles'].append(new_bundle)
KeyError: u'"religion"'
}}}
b) a lot of bundles have their values with "" like name = "bible-en"
c) the bundle name (directory name) for example bundle-en is not the same
than the name in library.info bible which breaks in
get_cat_for_bundle(bundle)
--
Ticket URL: <https://dev.laptop.org/ticket/2923#comment:9>
One Laptop Per Child <https://dev.laptop.org>
OLPC bug tracking system
More information about the Bugs
mailing list