[sharing-plugin-gallery2] New project

0
0
2009-11-30 07:45 UTC by Heikki Kallasjoki

About the project: Initially, this project contains a "share via service" plugin -- http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Using_Data_Sharing/Sharing_Plug-in -- for Maemo 5, to upload files to a Gallery 2 -- http://gallery.menalto.com/ -- web image album, using the Gallery Remote protocol. I hacked together a rudimentary implementation over the weekend, and tested it in the Maemo 5 final SDK. It seems to work for the most part, but I'm sure there are all kinds of bugs and omissions. Later, I guess I will also consider supporting Gallery 3 when they get that out, in case it doesn't support the same "remote control" protocol. About the very-beta release 0.1: The basic functions are there, but strings are not localized, the user interface is not intuitive, and there's no help in sight. It also hasn't been tried on a device, as I have no device to try it on. If you feel like testing it, here are some pointers: - The "URL" field in account setup should be something like "http://www.example.com/gallery", so that "[url]/main.php" finds the Gallery 2 script. Some trivial fixups (missing protocol prefix, main.php included in URL, extra slash at end) are handled automatically, though. - The name of the album to which the pictures will be uploaded should be given in the "Album" field. If the name is unique (over all the albums the user can write to), a simple name is enough. If not, use a path like "Foo/Bar/Baz" starting from the gallery root. Album names with slashes in them will not work. The name used is the "title", or "display name", *not* the "path name". - For rudimentary security, https URLs should be used, though I have no idea whether things like self-signed SSL certificates fail when using the SharingHTTP module. Probably. Also, the user name and password are passed with a GET request, so they might easily end up in web server logs. This should probably be fixed. - "strings libsharing.so" reveals that there is some sort of system which makes it possible to specify "updatable"-style options to the shown-when-sharing "Options" dialog, using a sharing_plugin_interface_update_options function. This could be used to provide a dynamic list of albums so the manual "set album name in account setup" trick would not be necessary. However, that particular function (or the service description XML counterparts) is not mentioned anywhere in the documentation, so supporting this will happen in a later release. - The source .tar.gz should be buildable with the usual "dpkg-buildpackage -rfakeroot -d".

Comments:

There have been no comments so far.

Comments:

You must be logged in to make comments.

Back