[Sugar-devel] Problem listing journal objects

Sascha Silbe sascha-ml-ui-sugar-devel at silbe.org
Tue Aug 18 04:50:26 EDT 2009


On Mon, Aug 17, 2009 at 09:45:49AM -0500, Jim Simmons wrote:

>> In View Slides I have some code that lists out what image files it
>> finds in the Journal and puts the results in a table, with the idea
>> that these images may be added to a slide show.  Until now I have 
>> been
>> just putting image files in the root directory of a thumb drive and
>> have been using the code below to list them:
>>
>>        ds_objects, num_objects =
>> datastore.find({'mime_type':['image/jpeg',  'image/gif', 
>> 'image/tiff',
>>  \
>>            'image/png']},  'title')

The support for mounted filesystems has moved from the data store to the 
Journal for 0.84+. I'm afraid your code can only list images inside the 
data store, but not on external media for non-0.82.

CU Sascha

-- 
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: Digital signature
Url : http://lists.sugarlabs.org/archive/sugar-devel/attachments/20090818/6ce2227f/attachment.pgp 


More information about the Sugar-devel mailing list