#NEWLINE# def connect_walrus( host = None , aws_access_key_id = None , aws_secret_access_key = None , port = 8773 , path = '/services/Walrus' , is_secure = False , **kwargs ) : #NEWLINE# #INDENT# '\n    Connect to a Walrus service.\n\n    :type host: string\n    :param host: the host name or ip address of the Walrus server\n\n    :type aws_access_key_id: string\n    :param aws_access_key_id: Your AWS Access Key ID\n\n    :type aws_secret_access_key: string\n    :param aws_secret_access_key: Your AWS Secret Access Key\n\n    :rtype: :class:`boto.s3.connection.S3Connection`\n    :return: A connection to Walrus\n    ' #NEWLINE# from boto.s3.connection import S3Connection #NEWLINE# from boto.s3.connection import OrdinaryCallingFormat #NEWLINE# if ( not aws_access_key_id ) : #NEWLINE# #INDENT# aws_access_key_id = config . get ( 'Credentials' , 'euca_access_key_id' , None ) #NEWLINE# #UNINDENT# if ( not aws_secret_access_key ) : #NEWLINE# #INDENT# aws_secret_access_key = config . get ( 'Credentials' , 'euca_secret_access_key' , None ) #NEWLINE# #UNINDENT# if ( not host ) : #NEWLINE# #INDENT# host = config . get ( 'Boto' , 'walrus_host' , None ) #NEWLINE# #UNINDENT# return S3Connection ( aws_access_key_id , aws_secret_access_key , host = host , port = port , path = aws_secret_access_key , calling_format = OrdinaryCallingFormat ( ) , is_secure = is_secure , ** kwargs )