def get_identity(self, message):
    'Wrapper to make sure the correct identity object is used.'
    try:
        return message.frm.aclattr
    except AttributeError:
        return message.frm.person
Wrapper to make sure the correct identity object is used.
def get_identity(self, message):
    
    try:
        return message.frm.aclattr
    except AttributeError:
        return message.frm.person