#8891 LOW Not Tri: datastore object's get_filepath() returns incorrect value

Zarro Boogs per Child bugtracker at laptop.org
Sun Oct 26 18:58:11 EDT 2008


#8891: datastore object's get_filepath() returns incorrect value
------------------------------+---------------------------------------------
  Reporter:  mtd              |           Owner:  tomeu                            
      Type:  defect           |          Status:  new                              
  Priority:  low              |       Milestone:  Not Triaged                      
 Component:  sugar-datastore  |         Version:  Development build as of this date
  Keywords:                   |     Next_action:  diagnose                         
Spec_stage:  unknown          |       Blockedby:                                   
  Blocking:                   |   Spec_reviewer:                                   
  Verified:  0                |   Spec_reviewed:  0                                
------------------------------+---------------------------------------------
 python like this:
 {{{
 from sugar.datastore import datastore
 print datastore.find(query={'title': 'Record Activity'},
 limit=1)[0][0].file_path
 }}}

 ...as used by olpc-support-scripts/lsjournal, reports a bogus path for the
 datastore object's file_path:

 {{{
 bash-3.2$ ./lsjournal -t 'Record Activity' -v
          activity_id -> ade229234b24193a27abe44c952cb4ea32b7ac8f
    title_set_by_user -> 0
                  vid -> 1.0
                title -> Record Activity
          share-scope -> private
                mtime -> 2008-05-18T22:26:43
             filename ->
           icon-color -> #5E008C,#00EA11
            timestamp -> 1211149603
             activity -> org.laptop.RecordActivity
           mountpoint -> /home/olpc/.sugar/default/datastore
                 keep -> 0
            mime_type ->
                   id -> 1a149df0-0665-4965-996c-2ac396970ae2
            file_path -> /home/olpc/.sugar/default/data/1a149df0-0665-4965
 -996c-2ac396970ae2

 bash-3.2$ ls -l /home/olpc/.sugar/default/data/1a149df0-0665-4965-996c-
 2ac396970ae2
 ls: cannot access /home/olpc/.sugar/default/data/1a149df0-0665-4965-996c-
 2ac396970ae2: No such file or directory
 bash-3.2$ ls -l
 /home/olpc/.sugar/default/datastore/store/1a149df0-0665-4965-996c-
 2ac396970ae2
 -rw-rw-rw- 1 10000 1001 30 2008-05-18 23:26
 /home/olpc/.sugar/default/datastore/store/1a149df0-0665-4965-996c-
 2ac396970ae2
 }}}

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


More information about the Bugs mailing list