From: Benoît Pin Date: Thu, 3 Oct 2013 21:30:34 +0000 (+0200) Subject: Méthode getMemberFullNameById -> prise en compte des modifications de MemberData. X-Git-Url: https://scm.cri.mines-paristech.fr/git/Plinn.git/commitdiff_plain/ddddef2ef68212cbaba3219b0a28ddb9ac987278?ds=sidebyside Méthode getMemberFullNameById -> prise en compte des modifications de MemberData. --- diff --git a/MembershipTool.py b/MembershipTool.py index 166d42a..2cfefe6 100755 --- a/MembershipTool.py +++ b/MembershipTool.py @@ -241,10 +241,7 @@ class MembershipTool( BaseTool ): member = self.getMemberById(userid) if not member : return userid - memberName = getattr(member, 'name', '') - memberGivenName = getattr(member, 'given_name', '') - memberId = member.getId() - memberFullName = formatFullName(memberName, memberGivenName, memberId, nameBefore = nameBefore) + memberFullName = member.getMemberFullName(nameBefore=nameBefore) return memberFullName