fle3-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fle3-dev] property 'name' of the user is not standard


From: Bo Granlund
Subject: Re: [Fle3-dev] property 'name' of the user is not standard
Date: Sat, 30 Aug 2003 21:11:17 +0300
User-agent: Mutt/1.3.28i

Hello Fabrizio,

> in the function get_author_name in the file WebtopItem.py you use the
> attribute name of the user which is not standard and it is not
> implemented by all the User Folders.
> Can you change it?
> I solved with this trick, but it's better to find another way:
> if hasattr(owner,'name'):
>       return owner.name
> else:
>       return str(owner)

Why do you think that is a bad idea? I think it's a good idea for the
WebtopItem class to hide such details. FLE guys might disagree, but I see no
way your change would break anything.

The FLE people will undoubtly commit your change on monday.

As always I'm just talking, :)
take care,
Bo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]