[Bugs] #2428 UNSP: custom images not loading under 0.84

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Fri Oct 8 05:53:52 EDT 2010


#2428: custom images not loading under 0.84
------------------------------------------+---------------------------------
    Reporter:  walter                     |          Owner:  walter                     
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  Visual Match               |        Version:  Unspecified                
    Severity:  Unspecified                |       Keywords:                             
Status_field:  Unconfirmed                |   Distribution:  Unspecified                
   Seeta_dev:                             |  
------------------------------------------+---------------------------------

Comment(by sascha_silbe):

 Replying to [ticket:2428 walter]:

 > I'll be doing more debugging/.testing as a result of
 http://lists.sugarlabs.org/archive/sugar-devel/2010-October/027600.html
 and have a crude work-around in the code right now. The problem is
 datastore.find({'mime-type': mime_type }) returns nothing in 0.84. (The
 workaround is that datastore.find({'title': basename}) returns everything,
 so I can -- inefficiently -- sort through the entire Journal looking for
 images to upload.

 As explained in that thread, the solution is to use {{{ {'mime_type':
 [mime_type]} }}}. That will work on 0.84+.
 You can even pass multiple MIME types and get all entries matching any of
 the MIME types.

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/2428#comment:1>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list