+class MemberAdapter(BaseMemberAdapter):
+
+ """Member data adapter.
+ """
+
+ adapts(IUser, IMemberDataTool)
+ implements(IMember)
+
+ security = ClassSecurityInfo()
+
+ def __init__(self, user, tool):
+ super(MemberAdapter, self).__init__(user, tool)
+ self.id = self.getId()
+
+ security.declarePublic('getMemberFullName')
+ def getMemberFullName(self, nameBefore=1) :
+ """ Return the best full name representation """
+ memberName = self.getProperty('name', default='')
+ memberGivenName = self.getProperty('given_name', default='')
+ memberId = self.getId()
+ return formatFullName(memberName, memberGivenName, memberId, nameBefore=nameBefore)
+
+
+InitializeClass(MemberAdapter)
+
+