[Sugar-devel] Problem listing journal objects
Jim Simmons
nicestep at gmail.com
Tue Aug 18 16:13:22 EDT 2009
Sascha,
I could have sworn that my code was picking up files in the root
directory of the thumb drive. However, my XO is running .82 and my
Fedora 10 box is also. My main development box is running Fedora 11
with .84. I tried testing View Slides on my Fedora 10 yesterday
thinking it was a .84 issue and got some errors that might involve non
ascii characters in filenames or something else. So I guess I have
other bugs to fix.
Is there some backward compatible way to do what I want to do? Or if
I wanted to do it specifically for .84 and didn't care about .82 how
would I do that?
Thanks,
James Simmons
On Tue, Aug 18, 2009 at 3:50 AM, Sascha
Silbe<sascha-ml-ui-sugar-devel at silbe.org> wrote:
> 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/
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iQEcBAEBAgAGBQJKimtOAAoJELpz82VMF3Dax3UH/jEQ5FnO0dli4dm6Uu6DiEro
> nXjMffNTUA55o4DMRdEMR530yEwX5x2yKMGRr4fkyzqF9NV1Qz+MiBWxU0mZxwk7
> 5b+a5ETYs2yvPy/GzD9ONmEGytihFhFZAa7c8bM1rpf3nEKgJ5WZ1FtXRQdNJ0dp
> 13n8yo3jT+fMl0lm0E9BGgX1ajgZxm0Ecg9AaquNRQSTTZC8ihRKtli6aSSSX92/
> 3Wtq1QHDaMmr979euIjbxcj63BGYofd3ZoncTSIyE+3ft7TBAt0jrWL9752w+Nph
> GaNPgjJjlyl+HvNeSyHwzq1ckMYRhPfssCfSaMMIJVRVK2RUBdAcaPY4ZatsDdc=
> =f0h3
> -----END PGP SIGNATURE-----
>
>
More information about the Sugar-devel
mailing list