def connect_walrus(host=None, aws_access_key_id=None, aws_secret_access_key=None, port=8773, path='/services/Walrus', is_secure=False, **kwargs):
 from boto.s3.connection import S3Connection
 from boto.s3.connection import OrdinaryCallingFormat
 if (not aws_access_key_id):
  aws_access_key_id = config.get('Credentials', 'euca_access_key_id', None)
 if (not aws_secret_access_key):
  aws_secret_access_key = config.get('Credentials', 'euca_secret_access_key', None)
 if (not host):
  host = config.get('Boto', 'walrus_host', None)
 return S3Connection(aws_access_key_id, aws_secret_access_key, host=host, port=port, path=path, calling_format=OrdinaryCallingFormat(), is_secure=is_secure, **kwargs)

def connect_walrus ( host = None , aws_access_key_id = None , aws_secret_access_key = None , port = 8773 , path = '/services/Walrus' , is_secure = False , ** kwargs ) : from boto . s3 . connection import S3Connection from boto . s3 . connection import OrdinaryCallingFormat if ( not aws_access_key_id ) : aws_access_key_id = config . get ( 'Credentials' , 'euca_access_key_id' , None ) if ( not aws_secret_access_key ) : aws_secret_access_key = config . get ( 'Credentials' , 'euca_secret_access_key' , None ) if ( not host ) : host = config . get ( 'Boto' , 'walrus_host' , None ) return S3Connection ( aws_access_key_id , aws_secret_access_key , host = host , port = port , path = path , calling_format = OrdinaryCallingFormat ( ) , is_secure = is_secure , ** kwargs )
connect to a walrus service .