[Sugar-devel] [PATCH sugar] Make sure the entry has the right color when copying from external device to Journal SL #2690

Simon Schampijer simon at schampijer.de
Thu Jun 9 11:27:52 EDT 2011


On 06/07/2011 07:52 PM, Sascha Silbe wrote:
> Excerpts from Simon Schampijer's message of Fri Jun 03 12:38:03 +0200 2011:
>
> [src/jarabe/journal/model.py]
>> @@ -615,6 +617,9 @@ def copy(metadata, mount_point):
>>       """Copies an object to another mount point
>>       """
>>       metadata = get(metadata['uid'])
>> +    if mount_point == '/' and metadata['icon-color'] == '#000000,#ffffff':
>
> Where does this colour come from? If we don't know the colour, why is it
> set?
>
> Otherwise the patch looks fine.
>
> Sascha

By default the metadata for for a file on an external device has the 
black/white color [1]. When we now copy a file from an external device 
to the Journal we color the new Journal entry in our color.

If we copy a Journal entry saved on machine A to machine B using an 
external device we want to keep the color information from machine A.

Regards,
    Simon

[1] 
http://git.sugarlabs.org/sugar/mainline/blobs/master/src/jarabe/journal/model.py#line422



More information about the Sugar-devel mailing list