X-Git-Url: https://svn.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/4a062898ae723db4755a4c900eb3bc66393f6c48..fc88da985fa899368c49003162f7f38c4346f0d5:/MembershipTool.py diff --git a/MembershipTool.py b/MembershipTool.py index 0d7624e..2cfefe6 100755 --- a/MembershipTool.py +++ b/MembershipTool.py @@ -74,7 +74,7 @@ class MembershipTool( BaseTool ): security.declareProtected(ListPortalMembers, 'getMemberById') - memberareaPortalType = 'Folder' + memberareaPortalType = 'Huge Plinn Folder' # security.declareProtected(SetOwnPassword, 'setPassword') @@ -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