def get_active_conferences(user):
 conferences = get_memcached(get_key('conferences'))
 list_conferences = []
 for key in conferences.keys():
  if (user in conferences[key]['users'].keys()):
   list_conferences.append(dict(id=key, title=conferences[key]['info']['title'], creator=conferences[key]['info']['creator'], creation_date=str(conferences[key]['info']['creation_date']), users=[dict(username=username, profile=get_user_profile(username)) for username in conferences[key]['users'].keys() if (not (username == user))]))
 return list_conferences

def get_active_conferences ( user ) : conferences = get_memcached ( get_key ( 'conferences' ) ) list_conferences = [ ] for key in conferences . keys ( ) : if ( user in conferences [ key ] [ 'users' ] . keys ( ) ) : list_conferences . append ( dict ( id = key , title = conferences [ key ] [ 'info' ] [ 'title' ] , creator = conferences [ key ] [ 'info' ] [ 'creator' ] , creation_date = str ( conferences [ key ] [ 'info' ] [ 'creation_date' ] ) , users = [ dict ( username = username , profile = get_user_profile ( username ) ) for username in conferences [ key ] [ 'users' ] . keys ( ) if ( not ( username == user ) ) ] ) ) return list_conferences
get_active_conferences -> list active conferences return active conferences :type user: basestring :return: list .