[Bugs] #903 UNSP: Read Etexts-11, remove the book results split view after a download

SugarLabs Bugs bugtracker-noreply at sugarlabs.org
Mon Jun 1 10:28:11 EDT 2009


#903: Read Etexts-11, remove the book results split view after a download
------------------------------------------+---------------------------------
    Reporter:  garycmartin                |          Owner:  jdsimmons                  
        Type:  enhancement                |         Status:  accepted                   
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  Read Etexts                |        Version:  Unspecified                
    Severity:  Unspecified                |     Resolution:                             
    Keywords:                             |   Distribution:  Unspecified                
Status_field:  Unconfirmed                |  
------------------------------------------+---------------------------------

Comment(by jdsimmons):

 I see the use case being like this:

 I download the first book and save it to the Journal.

 I use the load_document() method to display the book to the user, because
 he might want to read it.

 I download a second book and save it to the Journal.

 I use load_document() to display *that* book to the user.

 The user hides the search results table and starts reading his second
 downloaded book.  He gets to page 64.

 He closes the Activity.

 Just before closing there are two copies of the book in the Journal.  The
 one that the user was reading, which has meta data indicating he stopped
 on page 64, will be saved to the Journal by the write method that is
 invoked when the Activity closes.  The entry created in the Journal
 *before* the user started reading it has *no* metadata so it is the
 logical one to remove from the Journal.  Fortunately I save a pointer to
 the last Journal object I created, so it's easy to delete.

-- 
Ticket URL: <http://dev.sugarlabs.org/ticket/903#comment:7>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list