def teams_new_unicode(self):
 name = self.unicode_before_teams()
 teams_mapping = getattr(settings, 'OPENID_LAUNCHPAD_TEAMS_MAPPING', {})
 group_teams = [t for t in teams_mapping if (teams_mapping[t] == self.name)]
 if (len(group_teams) > 0):
  return ('%s -> %s' % (name, ', '.join(group_teams)))
 else:
  return name

def teams_new_unicode ( self ) : name = self . unicode_before_teams ( ) teams_mapping = getattr ( settings , 'OPENID_LAUNCHPAD_TEAMS_MAPPING' , { } ) group_teams = [ t for t in teams_mapping if ( teams_mapping [ t ] == self . name ) ] if ( len ( group_teams ) > 0 ) : return ( '%s -> %s' % ( name , ', ' . join ( group_teams ) ) ) else : return name
replacement for group .