#5899 HIGH Update.: files in /instance are sometimes deleted when activity not active

Zarro Boogs per Child bugtracker at laptop.org
Thu Jan 10 15:26:02 EST 2008


#5899: files in /instance are sometimes deleted when activity not active
------------------------+---------------------------------------------------
  Reporter:  erikb      |       Owner:  tomeu              
      Type:  defect     |      Status:  new                
  Priority:  high       |   Milestone:  Update.1           
 Component:  datastore  |     Version:                     
Resolution:             |    Keywords:  rainbow-integration
  Verified:  0          |    Blocking:                     
 Blockedby:             |  
------------------------+---------------------------------------------------

Comment(by tomeu):

 Erik, if the file is managed by Activity._jobject, then the base activity
 class owns it and the activities shouldn't make any assumption about that
 file path.

 Activities can only interact with that object through read_file() and
 write_file().

 Please see the api docs for those methods.

 Activities that don't fit in the simple model addressed by read_file and
 write_file should create their journal object and manage it themselves
 (using the API in sugar.datastore.datastore).

 Do you plan to be in cambridge next week? We are going to have there a
 journal submit and want to discuss better journal APIs for activities. The
 current ones have degraded during the development of the datastore, due to
 the compromises that had to be done at each development step.

-- 
Ticket URL: <http://dev.laptop.org/ticket/5899#comment:4>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list