<div dir="ltr"><div><div><div>Hi,<br></div> I created a folder in my home directory by the name <b>'server'</b> , put all the extracted book collections inside it and start a localhost server with <b>'python -m SimpleHTTPServer'</b> . <br>I then added that bookcollection url ( in my case it was - <b><a href="http://127.0.0.1:8000/server/en-ck12/index.htmlf">http://127.0.0.1:8000/server/en-ck12/index.htmlf</a></b>) to one of the already available book genres in <b>get-books.cfg</b> . <br><br>On clicking that genre I get this error message - '<b>There was an error downloading the list</b>.'<br><br></div>Regards,<br></div>Utkarsh Tiwari<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 19, 2016 at 2:50 PM, Tony Anderson <span dir="ltr"><<a href="mailto:tony_anderson@usa.net" target="_blank">tony_anderson@usa.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Hi, Utkarsh<br>
<br>
I am not sure what question you are asking.<br>
<br>
Looking at the code: the repositories seem to be defined in
get-books.cfg.<br>
<br>
The actual mechanics of accessing the network appears to be handled
by 'feedparse', which is a python module described at <br>
<a href="https://pythonhosted.org/feedparser/introduction.html" target="_blank">https://pythonhosted.org/feedparser/introduction.html</a>.<br>
<br>
What are you trying to do and what is your problem with it? Did you
add a repository to get-books.cfg? DId it show up as you expected in
the <br>
toolbar widget? What happens if you select it? Does it show the
catalogs you entered? What happens if you select a catalog? Does it
show a list of books?<br>
What happens when you click on a book - does it get downloaded to
the Journal?<br>
<br>
My suggestion is to add Rachel as an online repository getting the
books from its site as a first step. Once that is working, changing
the urls to local should be easier to test since you would already
know what to expect.
<a href="http://rachelfriends.org/previews/rachelplus/modules/en-ebooks/index.html" target="_blank">http://rachelfriends.org/previews/rachelplus/modules/en-ebooks/index.html</a>
is the site for Gutenberg. Each of the links on that page could be a
catalog. Then clicking on one to show the list of books in the right
panel. <br>
<br>
Tony<div><div class="h5"><br>
<br>
<div>On 07/19/2016 08:23 AM, Ütkarsh Tiwari
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hi,
<div> I am working on this feature of adding offline support
to GetBooks activity to allow users to connect to
schoolservers for offline books(stored on these servers)
support. I am not able to figure out what modifications I need
to make in the parsing technique of the activity in order to
fetch(probably via localhost server) the books from Gutenberg,
Rachel collections which I have already downloaded onto my
harddisk.</div>
<div><br>
</div>
<div>Could anyone here please point me in the right direction?<br clear="all">
<div><br>
</div>
-- <br>
<div data-smartmail="gmail_signature">Regards,<br>
Ütkarsh Tiwari<br>
<br>
<br>
<br>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
Sugar-devel mailing list
<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a>
</pre>
</blockquote>
<br>
</div>
<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" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Regards,<br>Ütkarsh Tiwari<br><br><br><br></div>
</div>