[Sugar-devel] Transfer all file metadata

Emil Dudev emildudev at gmail.com
Thu Dec 5 16:54:32 EST 2013


I believe I have solved the 'bug' of this ticket:

The problem is that when sending files, only the title, description and
mime type are preserved. This is due to telepathy
(Channel.Type.FileTransfer), as it does not support other properties.
There is a fix for telepathy (Channel.Interface.FileTransfer.Metadata), but
it's implemented in a different version of telepathy.

I have solved this bug by packing all the metadata and sending it as the
description. When the file is saved on the receiving machine, the metadata
is unpacked.
This works without a problem. But a problem arises with backward
If a user with this 'bug fix' sends a file to a user without it, the
receiving user will have JSON formatted data as the description of the file.

I'm not sure if this will be accepted, due to the last part. Yet I have not
found way to fix it.
Here are the code edits:

Emil Dudev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20131205/10c599b9/attachment.html>

More information about the Sugar-devel mailing list