def get_display_name(username):
 if (len(username) > 40):
  return ('%s...%s' % (username[:20].strip(), username[(-15):].strip()))
 return username

def get_display_name ( username ) : if ( len ( username ) > 40 ) : return ( '%s...%s' % ( username [ : 20 ] . strip ( ) , username [ ( - 15 ) : ] . strip ( ) ) ) return username
return the username to display in the navbar .