#2682 NORM Trial-3: Datastore API should support creating additional journal objects

Zarro Boogs per Child bugtracker at laptop.org
Mon Aug 13 05:15:41 EDT 2007


#2682: Datastore API should support creating additional journal objects
---------------------+------------------------------------------------------
  Reporter:  marco   |       Owner:  tomeu  
      Type:  defect  |      Status:  closed 
  Priority:  normal  |   Milestone:  Trial-3
 Component:  sugar   |     Version:         
Resolution:  fixed   |    Keywords:         
  Verified:  0       |  
---------------------+------------------------------------------------------
Changes (by tomeu):

 * cc: erikb, tomeu (added)
  * status:  new => closed
  * resolution:  => fixed

Comment:

 After some discussion, we've agreed on a solution that doesn't require any
 additional API.

 In the case of the Record activity, it should create the regular entry
 that refers to the activity as a whole, plus one additional entry for each
 photo or video clip.

 The regular entry won't have any file associated, but would have a
 property called, for example, 'subentries' with a value of the format
 '<subentry_id1>,<subentry_id2>,<subentry_id3>'.

 The additional entries would have the respective mime type for the file,
 so they could be opened in Paint or added to the clipboard as images.

 If the user resumes the main entry, Camera should retrieve the other
 entries by the ids stored in the 'subentries' property.

 Erik, look at the sugar/datastore/datastore.py module for the available
 API and ask in #sugar or the mailing lists for any doubts you have.

-- 
Ticket URL: <https://dev.laptop.org/ticket/2682#comment:1>
One Laptop Per Child <http://laptop.org/>



More information about the Bugs mailing list