On Wed, Apr 23, 2008 at 9:26 PM, Bert Freudenberg <[EMAIL PROTECTED]> 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
_______________________________________________
Sugar mailing list
[email protected]
http://lists.laptop.org/listinfo/sugar

