def create_conference(user, users, title):
 id = md5()
 id.update(str(datetime.now()))
 id = ((user + '_') + id.hexdigest())
 users.append(user)
 conferences = get_memcached(get_key('conferences'))
 if (id in conferences.keys()):
  return get_new_message_for_user(user)
 conferences[id] = {}
 conferences[id]['users'] = {}
 conferences[id]['info'] = {'creator': user, 'title': title, 'creation_date': datetime.now()}
 set_memcached(get_key('conferences'), conferences)
 add_users_in_conference(id, user, users)
 return get_new_message_for_user(user)

def create_conference ( user , users , title ) : id = md5 ( ) id . update ( str ( datetime . now ( ) ) ) id = ( ( user + '_' ) + id . hexdigest ( ) ) users . append ( user ) conferences = get_memcached ( get_key ( 'conferences' ) ) if ( id in conferences . keys ( ) ) : return get_new_message_for_user ( user ) conferences [ id ] = { } conferences [ id ] [ 'users' ] = { } conferences [ id ] [ 'info' ] = { 'creator' : user , 'title' : title , 'creation_date' : datetime . now ( ) } set_memcached ( get_key ( 'conferences' ) , conferences ) add_users_in_conference ( id , user , users ) return get_new_message_for_user ( user )
create conference :type user: basestring :type users: baselist .