[sugar] [PATCH] Fix appearance of activity bundles (in Journal)

Tomeu Vizoso tomeu
Wed Apr 23 15:32:17 EDT 2008


On Wed, Apr 23, 2008 at 9:26 PM, Bert Freudenberg <bert at freudenbergs.de> wrote:
>
>  On 23.04.2008, at 21:23, Eben Eliason wrote:
>
>  > if jobject.metadata.has_key['title'] and
>  > jobject.metadata.has_key['title']:
>
>
>  Seems a bit redundant.

;)

I would go for

if jobject.metadata.get('title', ''):
  _title = title
else:
  _title = _('Untitled')

(more or less)

Tomeu



More information about the Sugar-devel mailing list