[Sugar-devel] [RFC PATCH 8/8] Expandedentry: Try to use the filesize property.

Andrés Ambrois andresambrois at gmail.com
Tue May 4 03:54:35 EDT 2010


On Saturday 01 May 2010 04:33:56 pm Andrés Ambrois wrote:
> +        _('Size: %s') % (format_size(int(self._metadata.get('filesize')) or
> +                            model.get_file_size(self._metadata['uid'])),),
> +            ]

This is wrong. It should be:

 _('Size: %s') % (format_size(int(self._metadata.get('filesize', 
                                model.get_file_size(self._metadata['uid']))))),

-- 
  -Andrés
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.sugarlabs.org/archive/sugar-devel/attachments/20100504/2a07e0d2/attachment.pgp 


More information about the Sugar-devel mailing list