def member(self, user, objects=False):
        """ Returns a user as a dict of attributes
        """
        try:
            member = self.search(uid=user, objects=objects)[0]
        except IndexError:
            return None
        if objects:
            return member
        return member[1]
def member ( self , user , objects = False ) : try : member = self . search ( uid = user , objects = objects ) [ 0 ] except IndexError : return None if objects : return member return member [ 1 ]
Returns a user as a dict of attributes