'Returns "rolename (version)" if version is not null
Returns "rolename" otherwise'

def __repr__(self):

    if self.version:
        return ('%s    (%s)' % (self.name, self.version))
    else:
        return self.name
