[sugar] [PATCH] Fix appearance of activity bundles (in Journal)
Eben Eliason
eben.eliason
Wed Apr 23 15:32:47 EDT 2008
On Wed, Apr 23, 2008 at 3: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 agree, but this is the root of the problem. It represents the
difference between checking for None and checking for a null string.
Perhaps we could instead interpret null strings as None type so that
has_key returns False? This does change the semantics a bit, though.
- Eben
More information about the Sugar-devel
mailing list