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

SugarLabs Bugs bugtracker-noreply at sugarlabs.org
Thu May 28 16:16:15 EDT 2009


#903: Read Etexts-11, remove the book results split view after a download
------------------------------------------+---------------------------------
    Reporter:  garycmartin                |          Owner:  jdsimmons                  
        Type:  enhancement                |         Status:  new                        
    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 walter):

 Something along the lines of this should let you save after each
 download...

     """
     Save instance to Journal
     """
     def jobject_new_patch(self):
         oldj = self._jobject
         self._jobject = datastore.create()
         self._jobject.metadata['title'] = oldj.metadata['title']
         self._jobject.metadata['title_set_by_user'] = \
             oldj.metadata['title_set_by_user']
         self._jobject.metadata['activity'] = self.get_service_name()
         self._jobject.metadata['activity_id'] = self.get_id()
         self._jobject.metadata['keep'] = '0'
         # Is this the correct syntax for saving the buddies list?
         self._jobject.metadata['buddies'] = self.tw.buddies
         self._jobject.metadata['preview'] = ''
         self._jobject.metadata['icon-color'] =
 profile.get_color().to_string()
         self._jobject.file_path = ''
         datastore.write(self._jobject,
                 reply_handler=self._internal_jobject_create_cb,
                 error_handler=self._internal_jobject_error_cb)
         self._jobject.destroy()

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


More information about the Bugs mailing list