Ah, thanks for clarifying.  This was the approach used in
expandedentry, and it seemed reasonable to simplify to this in
collapsedentry as well.

Should I simply add:

if title_text == '':
    title_text = _('Untitled')

Or should I rewrite the whloe check a la:

title_text = _('Untitled')
if jobject.metadata.has_key['title'] and jobject.metadata.has_key['title']:
    title_text = jobject.metadata['title']

Thoughts?

- Eben


On Wed, Apr 23, 2008 at 3:12 PM, Tomeu Vizoso <[EMAIL PROTECTED]> wrote:
> Hi,
>
>  +        title_text = jobject.metadata.get('title', _('Untitled'))
>
>  _('Untitled') will be used only if the title property doesn't exist,
>  so there may appear '' instead of 'Untitled'.
>
>  Thanks,
>
>  Tomeu
>
>
>
>  On Wed, Apr 23, 2008 at 9:01 PM, Eben Eliason <[EMAIL PROTECTED]> wrote:
>  > This fixes the appearance of both icons and titles of activity bundles
>  >  in the Journal.  The icons are now rendered as gray outlines, matching
>  >  those in the activity list of Home.  The titles are now used directly,
>  >  eliminating the "bug" which caused " Activity" to be appended every
>  >  time a the title of one was edited.
>  >
>  >  - Eben
>  >
>  > _______________________________________________
>  >  Sugar mailing list
>  >  [email protected]
>  >  http://lists.laptop.org/listinfo/sugar
>  >
>  >
>
_______________________________________________
Sugar mailing list
[email protected]
http://lists.laptop.org/listinfo/sugar

Reply via email to